Adam Saghy created FINERACT-2699:
------------------------------------
Summary: Future dated Accrual Activity created during loan re-open
and re-close
Key: FINERACT-2699
URL: https://issues.apache.org/jira/browse/FINERACT-2699
Project: Apache Fineract
Issue Type: Bug
Affects Versions: 1.15.0
Reporter: Adam Saghy
Assignee: Adam Saghy
{*}Steps to reproduce{*}:
# Set business date to May 9, 2026 and create an active client.
# Create an interest-bearing progressive loan ($279.99 principal, 24.99% rate,
3 monthly installments).
# Approve and disburse the loan on May 9, 2026 (same day, $279.99).
# Advance business date to May 24, 2026 and run inline COB (posts daily
ACCRUAL entries).
# Early full payoff on May 24, 2026 — before the first installment due date
post a {*}full repayment{*}. This closes the loan and posts an ACCRUAL_ACTIVITY
transaction at the closure date.
# Advance business date to May 29, 2026 and run inline COB.
# Post a MERCHANT_ISSUED_REFUND on May 29, 2026
(interestRefundCalculation=true).
# Reverse the full-payoff repayment on May 29, 2026 (adjust with amount 0).
This reopens the loan and triggers reprocessing. → triggers the bug
*Expected*
* The reversed ACCRUAL_ACTIVITY transaction with the date of 1st installment
due (2026/06/09) should NEVER be created since the date is in future.
*Actual*
* The *reversed ACCRUAL_ACTIVITY is stamped with the future first-installment
due date* (June 9, 2026), while submitted_on_date stays correct (May 29).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)