Adam Saghy created FINERACT-2204:
------------------------------------

             Summary: Fix accrual activity reversal logic: prevent duplicate 
reverse and reverse-replay for the same transaction
                 Key: FINERACT-2204
                 URL: https://issues.apache.org/jira/browse/FINERACT-2204
             Project: Apache Fineract
          Issue Type: Bug
    Affects Versions: 1.11
            Reporter: Adam Saghy
             Fix For: 1.12


Accrual activity reverse and replay is not consistent across different 
scenarios (external event)

Loan product configuration attached, major pointers:
 * progressive

 * interest bearing

 * interest recalculation = true

 * Accrual Activity is enabled on loan product (Accounting tab, checkbox on the 
top)

*+Scenario 1 (Repayment reversal):+*
 # Set business date to 02/25/2025

 # Create and disburse loan - $75.71

 # Update business date to 03/10/2025

 # Run the COB

 ## Accrual got created

 # Create a repayment (over payment) - $80

 ## accrual activity transaction got created

 # Update business date to 03/28/2025 (after installment date)

 # Reverse repayment created in step 5

 ## Accrual activity created in step 5 got reversed -> 
1st LoanAdjustTransactionBusinessEvent was triggered
 ## Accrual activity transaction got reverse-replayed (same as above reverted 
one)-> a 2nd LoanAdjustTransactionBusinessEvent was triggered

*Expectation*

- Do not throw reversal and reverse-replay events for the very same transaction



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to