Worked example
Credit applied by invoice (currency): 100, 150, 0
Inputs
- Open invoice balances in application order (currency): 100,200,300
- Available credit note value (currency): 250
Input order is the supplied application priority; credit cannot be applied beyond an invoice balance.
Currency changes the labels, not the amounts. No exchange-rate conversion.
Apply credit sequentially to invoices in supplied priority order.
Subtract credit applied to each invoice.
Return credit beyond all open balances.
Input order is the supplied application priority; credit cannot be applied beyond an invoice balance. No tax or legal priority rule is inferred.
OpenStax: Describe and Identify Cost Drivers ↗Credit applied by invoice (currency): 100, 150, 0
Credit applied by invoice (currency): 100, 200, 300