InvoiceItem.Balance field behavior
Issue: I just need to understand the behavior of the field 'Balance' at the invoice item level. Because the field is not listed in the documentation but it is available in the workflow to use. I felt the field is not giving the expected value, it might be because of client configured it wrongly or field is misbehaving. I just need confirmation for the balance field behavior, Whether it will give value with a discount or not?
Please find the equation for the field which helps to understand the behavior
InvoiceItem.Balance = chargeAmount - adjustmentAmount - paymentAmount - creditMemoAmount – discountAmount
In this equation, adjustmentAmount is used to track the invoice that was adjusted before Invoice Settlement got enabled.