SalesOrderPaymentBalance
What is due, paid and open for a sales order. It counts the payments of the order and of its invoices and their invoice corrections, so the order shows the whole picture.
SalesOrderPaymentBalanceFields
The ID of the sales order.
The currency of the amounts (ISO 4217).
The gross amount of the order.
The gross amount of the invoice corrections of its invoices.
What the customer has to pay: the gross amount minus the credited amount; for a cancelled order 0 minus the credited amount.
What counts as paid: the payments of the order and of its invoices and invoice corrections, including cash discount write-offs and payouts (negative). Payments towards dunning fees do not count.
'amountDue' minus 'paidAmount'. Negative when the order is overpaid; a cancelled order is overpaid by everything paid.
How much the order is overpaid: the negative open amount as a positive number, otherwise 0. This is what 'CreateSalesOrderRefund' can refund.
How far the order is paid.
When the order became fully paid: the date of its last payment, or its creation date when nothing is due. Empty while it is not fully paid.
Was this page helpful?