I use the MS web API and with it I POST purchase invoices. For development I use Visual Studio and .NET Core.
I first POST the invoice header using the purchaseInvoice resource type.
Then I POST the invoice line(s) using the purchaseInvoiceLine resource type and the purchaseInvoice Id
I want the invoice to be posted immediately (not as a draft), therefor I issue a bound action.
After posting the bound action I get an exception, Application_DialogException,Total amount (0.00) is not equal to total of lines (242.00).
The total amount of the invoice header is not the amount I send (242.00), but 0.00
Why is the correct total amount not showing, but instead 0.00?
And how can i solve this?