[ 
https://issues.apache.org/jira/browse/FINERACT-1850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18128341#comment-18128341
 ] 

Abhinav Kumar Jha commented on FINERACT-1850:
---------------------------------------------

PR: https://github.com/apache/fineract/pull/6686

*Fix:* the job now reads {{is_reversal}}, so it skips reversal transactions and 
keeps the flag when it saves the account. Reversal transactions are also 
excluded from the job's deposit total, as on the savings account side.

*Verification:* in the reversal scenarios (reversed deposit, withdrawal and 
manual interest posting, a reversal after an interest posting, overdraft, pivot 
mode) the job now posts exactly what the {{postInterest}} command posts for an 
identical account: 14 of 14 runs, 0 of 14 on develop. The other job scenarios 
are unchanged. The new integration test fails on develop with {{expected 
186.9708 but was 193.600900}} and passes with the fix.


> Interest Wrongly Calculated after Reversal
> ------------------------------------------
>
>                 Key: FINERACT-1850
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1850
>             Project: Apache Fineract
>          Issue Type: Bug
>            Reporter: Frank Nkuyahaga
>            Assignee: Abhinav Kumar Jha
>            Priority: Major
>
> # Create a savings account with overdraft turned on.
>  # Set interest posting to daily.
>  # Add withdrawal fee charge.
>  # Withdraw funds from the account to take it into overdraft
>  # Wait a couple of days (verify that interest posting happens correctly on 
> those days)
>  # Make a deposit (partial repayment i.e the account should still be in 
> overdraft after this)
>  # Wait a few days then make another withdrawal
>  # Wait another day then reverse the deposit make above
>  #  Check the account after a couple of days
> *Expected*
> The interest posting should be correct even after the reversal
> *Actual*
> The interest posting is wrong after the reversal



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

Reply via email to