Hello Frank, I have one more question, is there a possibility to add the vat rate to an invoice via REST-API? Best regards Nicolaij
Hello Frank, everything is working as expected now. Thanks a lot for walking me through. Two questions that would make my life a bit easier for the task at hand: Is it possible to call the im_next_invoice_nr procedure via rest or will it be called automatically if I omit the invoice_nr field in the json file, that I use to create the im_invoice object? Can one create multiple im_invoice_item objects from one json file? Best regards Nicolaij
Hello Frank, everything is working as expected now. Thanks a lot for walking me through. One question that would make my life a bit easier for the task at hand: Is it possible to call the im_next_invoice_nr procedure via rest or will it be called automatically if I omit the invoice_nr field in the json file, that I use to create the im_invoice object? Best regards Nicolaij
Hi, I will try on Monday. I used this resource as a guideline: http://www.project-open.com/en/package-intranet-rest-create but instead of xml I used a json file in the exemplary wget statement wget -O - --post-file=im_invoice_item.json --user=<user> --password=<pw> http://localhost/intranet-rest/im_project_item</pw></user> in the json file I used the same items as the xml examples in the third paragraph in the aforementioned tutorial page. Thank you for the quick help Nicolaij
Hi Frank, thanks that resolved this issue, however I'm geeting a new error message: "Error creating Financial Document Item: \'undefined variable current_user_id\'\'." As far as I understand it it's used in the duplicate check, but I don't see where it is initialized. Best regards Nicolaij
Hello Everyone, while trying to populate an im_invoice object via the REST-API I get an "Error creating Financial Document Item: \'invalid command name \"im_uom_units\"\'." Since the item_uom_id parameter is required it can't be omitted. Creating the im_invoice worked perfectly fine. Am I missing something? Thanks in advance Nicolaij