when you are using the api Command UpdateInvoice and you delete with it a line item, the total will be correct adjust, but the applied Credit is equal to the old total.
Thus it can happen that the invoice amount is only 10$, but the invoice has 15$ of credit assigned.
It would be useful if the function corrects the assigned credit if the invoice amount is less than the credit.
1 Comment
Login to post a comment.
Thanks for your suggestion. At present the API behaviour is consistent with the behaviour of the admin UI. So any changes would likely need to be made to both places.
How would everyone feel about that more broader change?