I have created a Purchase Order using the DI API. I have a single line item where I am setting the item code, description, currency, rate, quantity and price. When I save this document initially (Add), the line total and document total are updated automatically.
When I go back to this document using the DI API and add a new line item (Update) and again set the item code, description, currency, rate, quantity and price, the line total is not updated automatically and therefore the document total is incorrect as well.
Am I missing a step here? I have resolved to set my line total manually for now but don't really feel I should have to do this.