KamoCRM

Tier 4 — LoanPaymentPostingService unit tests

Testkamolos
Ya
29 Mei 2026, 00:13 UTC
Mwandishi
Kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei