[
https://issues.apache.org/jira/browse/FINERACT-752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127504#comment-18127504
]
Abhinav Kumar Jha commented on FINERACT-752:
--------------------------------------------
Hi [~adamsaghy], I have opened a PR for this:
https://github.com/apache/fineract/pull/6665
I reproduced it on develop with the steps from the description (the withdrawal
fee is not needed):
- Configuration disabled: one interest posting, on 25 March 2019 (144.75)
- Configuration enabled: two postings, on 23 March 2019 (138.72) and 24 March
2019 (144.75)
So the interest for 1 to 23 March is credited twice, and every further
backdated transaction adds another posting.
*Cause:* with the configuration enabled, a manual posting is dated on the
period end (24 March). On recalculation that date is read as a posting date, so
the period ends one day earlier (23 March) and a second posting is created.
*Fix:* the stored manual posting dates are moved forward by one day before the
periods are split. The new integration test checks that the configuration
changes only the posting date, not the amount. It fails on develop and passes
with the fix.
The Post Interest For Savings job has a separate problem with manual postings,
which I will raise in its own issue.
Could a committer please assign this to me and approve the CI run on the PR?
This is my first contribution.
> savings interest, posting wrong interest amount when
> savings-interest-posting-current-period-end is enable
> ------------------------------------------------------------------------------------------------------------
>
> Key: FINERACT-752
> URL: https://issues.apache.org/jira/browse/FINERACT-752
> Project: Apache Fineract
> Issue Type: Bug
> Components: Savings
> Affects Versions: 1.3.1, 1.8.0
> Reporter: andrewDzakpasu
> Priority: Critical
> Labels: p1
> Attachments: fineract79.png, fineract80.png
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When savings-interest-posting-current-period-end is enable the amount of
> interest posted is twice the amount when
> savings-interest-posting-current-period-end is disabled.
>
> i was able to replicate this on these two accounts
> 1.[https://staging.openmf.org/#/viewsavingaccount/79] when
> savings-interest-posting-current-period-end is disable
> 2.[https://staging.openmf.org/#/viewsavingaccount/|https://staging.openmf.org/#/viewsavingaccount/79]80
> savings-interest-posting-current-period-end is enable.
>
>
> To replicate.
> # create a savings account with voluntary product with withdrawal fee of 300
> # opening balance 20013 activation date 1-03-2019
> # approve and activate 1-03-2019
> # post interest on 25-03-2019
> # make a withdrawal of 19500 on 26-03-2019
> # you will notice the interest posting total amounts to 296 on
> [https://staging.openmf.org/#/viewsavingaccount/|https://staging.openmf.org/#/viewsavingaccount/79]80
> which is wrong
> # whilst on
> [https://staging.openmf.org/#/viewsavingaccount/|https://staging.openmf.org/#/viewsavingaccount/79]79
> the amount is 187 which is correct .
--
This message was sent by Atlassian Jira
(v8.20.10#820010)