As you can see, while our descriptions are all '1 June: Winit updated 2' In the invoicce we have:
1 June: Winit and 1 June: Winit updated 1 and 1 June: Winit updated 2
From the documentation:
Once you have an invoice or estimate posted and need to alter or correct something on a line item, it is possible to make a PUT request, and specify the desired result. This means that you cannot simply make a PUT request using just the lines you wish to change but need to specify everything that is correct also. It can be thought of as making a POST request for the first time correctly but using PUT.
This feels awfully like a bug, please let us know how to procead.
Line items on sales invoices are appended and not replaced.
in Bug Reporting
Posted
When we do a put request on sales_invoices the sales invoice line items are apended instead of replaced.
https://developer.sage.com/api/accounting/guides/line_items/
Payload from put request
As you can see, while our descriptions are all '1 June: Winit updated 2' In the invoicce we have:
1 June: Winit and 1 June: Winit updated 1 and 1 June: Winit updated 2
From the documentation:
Once you have an invoice or estimate posted and need to alter or correct something on a line item, it is possible to make a PUT request, and specify the desired result. This means that you cannot simply make a PUT request using just the lines you wish to change but need to specify everything that is correct also. It can be thought of as making a POST request for the first time correctly but using PUT.
This feels awfully like a bug, please let us know how to procead.