Hi inar, Thanks for the detailed write-up, it made the code easy to follow. I can share what I found for points 1 and 3. I'll leave point 2 to someone who knows the accounting side better. Maintainers, please correct me if I've got anything wrong.
1. Penalty timing Overdue penalties are added by the COB business step APPLY_CHARGE_TO_OVERDUE_LOANS (ApplyChargeToOverdueLoansBusinessStep). So the penalty for a day only exists once COB has processed that day. As you found, the point-in-time endpoint (LoanPointInTimeServiceImpl#retrieveAt) only removes transactions and charges dated after the requested date. It doesn't apply new ones, so the loan shows as overdue with a penalty of 0. The related settings are penalty-wait-period and backdate-penalties-enabled. Both are read when COB decides which installments get the penalty. I'm not aware of a supported way to collect the first-day penalty before that day's COB, so I'd also like to hear how other deployments handle it. 3. Interest waive in Progressive In AdvancedPaymentScheduleTransactionProcessor#processLatestTransaction, WAIVE_INTEREST goes through the same handleRepayment path as REPAYMENT, CHARGE_ADJUSTMENT, INTEREST_PAYMENT_WAIVER and others. Its amount is allocated to installments with PaymentAction.PAY, and afterwards adjustInterestComponent() removes the unrecognized-income part. The cumulative processors (for example FineractStyleLoanRepaymentScheduleTransactionProcessor) call installment.waiveInterestComponent() for a waiver instead, which is what fills interestWaived. That would explain why, on progressive loans, the waived amount shows up as interest paid. For a customer-facing view, I'd tell the two apart by transaction type (WAIVE_INTEREST vs REPAYMENT) and not rely on the paid figure in the summary. Whether this was a deliberate design choice is a question for the maintainers. Thanks, Senesh Perera GitHub: ImalkaPerera On Sat, Nov 28, 2026 at 11:32 AM 星空下的雨 via dev <[email protected]> wrote: > > Hello Fineract community, > > We are using Apache Fineract 1.15.0, commit d5636847ac, and would like to > confirm the intended behavior in three related areas: overdue penalty > timing, COB-generated accounting entries, and interest waive in the new > Progressive mode. > > 1. Overdue penalty on the first overdue day, before COB > > Loan details: > - single installment loan > - disbursement date: 2026-12-08 > - due date: 2026-12-15 > - no grace period configured > - effective penalty wait or grace period is 0 > > On 2026-12-16, before that day's COB has run, we observe: > > - BUSINESS_DATE = 2026-12-16 > - COB_DATE = 2026-12-15 > - the point-in-time loan endpoint reports the loan as overdue > - no overdue penalty charge has been generated yet > - penalty balance is 0 > > Example request: > > GET /loans/at-date/{loanId}?date=2026-12-16 > > Relevant response: > > { > "interest": { > "interestCharged": 21.0, > "interestPaid": 0.0, > "interestOutstanding": 21.0 > }, > "penalty": { > "penaltyChargesCharged": 0.0, > "penaltyChargesOutstanding": 0.0 > }, > "arrears": { > "principalOverdue": 3000.0, > "interestOverdue": 21.0, > "totalOverdue": 3021.0, > "overDueSince": "2026-12-15", > "overdue": true > } > } > > Our current reading of the implementation is: > > - LoanPointInTimeServiceImpl#retrieveAt temporarily sets BUSINESS_DATE to > the requested date. > - LoanArrearsAgingServiceImpl#calculateArrearsForLoan marks an installment > as overdue when: > > installment.dueDate < BUSINESS_DATE > > So with BUSINESS_DATE = 2026-12-16, the installment due on 2026-12-15 is > overdue. > > - Penalty amounts in the point-in-time response come from persisted loan > summary and loan charge records, not from a dynamic calculation based on > BUSINESS_DATE. > - The overdue penalty charge is generated only after the corresponding COB > processing advances COB_DATE. > - Since COB_DATE is still 2026-12-15, the penalty related to 2026-12-16 > has not yet been persisted. > > As a result, a repayment made during 2026-12-16, before COB has run, does > not include penalty. A repayment made after the 2026-12-16 COB run does. > > In some markets we support, the penalty for the first overdue day should > be collectible on that same day. For example: > > - due date: 2026-12-15 > - first overdue day: 2026-12-16 > - repayment during the day on 2026-12-16 > - expected repayment amount includes the penalty for 2026-12-16 > > Questions: > > 1. Is the current behavior intentional? That is, should the penalty for an > overdue day become visible and payable only after that day's COB has > completed? > 2. Does Fineract provide a supported configuration or recommended > deployment pattern that would allow the 2026-12-16 penalty to be collected > before that day's COB has run? > 3. How do other deployments handle markets where penalty starts on the > first overdue day and must be collectible on that same day? > > 2. COB-generated accounting entries: entry_date and submittedOnDate > > Using the same loan example: > > - due date: 2026-12-15 > - on 2026-12-17, running the batch with COB_DATE = 2026-12-16 > - the generated accounting entries show: > - submittedOnDate = 2026-12-16 > - entry_date = 2026-12-15 > > This appears to backfill the accounting amount for the previous day. > > Questions: > > 1. Is it intentional that entry_date and submittedOnDate can differ, with > a minimum one-day gap in the implementation? > 2. What is the rationale for generating the previous day's accounting > amount on the next day? Is this driven by COB semantics, audit > requirements, or something else? > > 3. Interest waive in Progressive mode > > In the new Progressive mode, we observe that interest waive is processed > through the pay logic module rather than a dedicated waive logic module. > > From the loan account view: > > - interestPaid increases > - interestWaived does not increase > > This creates a semantic issue: if the frontend displays paid to the > customer, the customer may misunderstand the waived amount as their own > repayment, when it is actually a waiver granted by the institution. > > Questions: > > 1. What is the intention behind reusing the pay logic for interest waive > in Progressive mode? > 2. If this is expected behavior, should customer-facing displays use > another field or transaction type to distinguish actual customer repayment > from an institution waiver? > > Thanks in advance for any clarification. > inar >
