EARS: When a remittance payer pays short and the Clearance Manager has no credit line, the system shall split what was paid across the payer's clearances.
Story: As a settlement payee, I want a short remittance split by one known rule, so that I can tell which of my clearances were settled.
Acceptance criteria:
-
ONE-807.1: When a remittance payer pays short, the system shall settle no clearance for more than the payer owes on it.
-
ONE-807.2: When a remittance payer pays short, the system shall settle a clearance to a settlement payee only after every older clearance to that payee is settled in full.
-
ONE-807.3: Where the Clearance Manager follows the Remittance of Funds page, the system shall give each settlement payee its share of the payment in proportion to what it is owed, rounded to a minor unit and capped at what it is owed.
-
ONE-807.4: Where the Clearance Manager follows the Transfer of Funds page, the system shall apply the payment to the payer's clearances in the order they were recorded, whatever the payee.
-
ONE-807.5: When a remittance payer pays short, the system shall allocate the whole payment and no more.
-
ONE-807.6: If a remittance payer pays short, then the system shall settle each clearance for the same amount whichever source page the Clearance Manager follows.
The clearances are listed in the order they were recorded, oldest first. The
page followed is a reading of the sources (AllocationReading), and so
is the rounding of a proportional share (Rounding). The result lists
the amount settled on each clearance.