FAILURE MAP
← Case archive

FA-59655 / Subscription proration billing / Member archive

Minimum threshold for invoicing prorations: credit threshold · case 05

Tiny credits are applied to balances immediately instead of being carried.

Member previewVariant 5 · 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, 204, 0][0, 0, -204]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 ↗