FAILURE MAP
← Case archive

FA-59643 / Subscription proration billing / Member archive

Minimum threshold for invoicing prorations: carried amount inclusion · case 03

Small deferred prorations from earlier cycles are never billed.

Member previewVariant 3 · 3 implementations · 10 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 0[0, 280, 0][0, 286, 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 ↗