FAILURE MAP
← Case archive

FA-59648 / Subscription proration billing / Member archive

Minimum threshold for invoicing prorations: invoice threshold · case 03

Pending amounts exactly at the threshold are carried instead of invoiced.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input {lines, threshold, carried}. Pending = carried + sum(lines). Pending >= threshold is invoiced now; pending <= -threshold is credited to the balance now; anything in between is carried to the next cycle. Return [invoiced, credited, carry].

Why this case matters

Tiny proration amounts are deferred to avoid micro-charges, but must not be lost.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression (boundary) 0[0, 0, 500][500, 0, 0]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗