Using #REFS to Handle Multiple Payments for a Single Item

The MULPAY algorithm in the #REFS algorithm group applies multiple payments to a single item, in a single run.

The MULPAY algorithm works by selecting payments with matching reference values and payment currency, then applies multiple payments to the same item.

Prerequisites

These prerequisites must be met in order to use the MULPAY algorithm to apply multiple payments to the same item:

Processing Multiple Payments with the MULPAY Algorithm

The MULPAY algorithm processes multiple payments in this manner:

  1. If the first payment amount is less than the item pay amount (balance amount), Payment Predictor selects the next payment and compares the payment amount to the item remaining balance. The same process continues until the item remaining balance is zero or there are no remaining payments.

  2. For the last applied payment:

    1. If the payment amount is greater than the remaining item balance, an adjustment item is created based on the overpayment condition defined for the #REFS group algorithm in the Predictor Method Page.

    2. if the payment amount is less than the remaining item balance, the item remains open.