KamoCRM

Tier 4 — LoanPaymentPostingService unit tests

Testkamolos
Shipped
29 மே, 2026 அன்று 12:13 AM UTC
Author
Kamo
Commit
58d402a

Six mocked-repository unit tests covering the heart of the payment posting: - **************** payment of $100 against loan with $25 fees / $50 interest / large principal balance → exact 25/50/25 fees/interest/principal allocation per Reg Z. - **************** DELINQUENT loan with future-due-date receiving a payment → ACTIVE + D0. - **************** balance hits zero → PAID_OFF + paidOffAt set. - **************** previously- SUCCEEDED $100 principal payment returned → balance restored to $1000 + $25 NSF assessed. - **************** PENDING_DISBURSEMENT INSTALLMENT → ACTIVE, principalBalance = principal, nextPaymentDueAt set, lastAccrualDate = today. - **************** PENDING_DISBURSEMENT REVOLVING_LOC → ACTIVE, principalBalance = 0, lastAccrualDate = today (regression test for T1.6). 36 total tests passing.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing