[
https://issues.apache.org/jira/browse/FINERACT-2208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17934556#comment-17934556
]
Bharath Gowda commented on FINERACT-2208:
-----------------------------------------
[~adamsaghy] the scenario looks good to me
> Penalty is not recalculated after backdated transactions
> --------------------------------------------------------
>
> Key: FINERACT-2208
> URL: https://issues.apache.org/jira/browse/FINERACT-2208
> Project: Apache Fineract
> Issue Type: Bug
> Affects Versions: 1.11
> Reporter: Arnold Galovics
> Assignee: Arnold Galovics
> Priority: Major
> Fix For: 1.12
>
>
> h4. Product settings that this should work for:
> * Cumulative repayment schedule (penalties, fees, interest, principal order)
> * Flat interest, equal installments; declining interest, equal installments;
> declining interest, equal principal
> * Grace on penalty posting - any number of days
> h4. Repro steps:
> # Loan is disbursed while it's already overdue
> # Apply overdue penalties to overdue job is executed
> # Add accrual transactions job is executed (or periodic) (or can be skipped
> if cash accounting is used on the LP)
> # Do a backdated repayment during the period of the first overdue installment
> h3. Example:
> LP is 4 days long, 3 repayment periods, 5k disbursed, no interest.
> Before step 4:
>
> |*Date*|*Transaction type*|*Amount*|*Principal*|*Penalties*|
> |1-Jan|Disbursement|5000| | |
> |5-Jan|Accrual|16.67| |16.67|
> |9-Jan|Accrual|50.01| |50.01|
> After step 4:
> |*Date*|*Transaction type*|*Amount*|*Principal*|*Penalties*|
> |1-Jan|Disbursement|5000| | |
> |5-Jan|Accrual|16.67| |16.67|
> |7-Jan|Repayment|1000.0|983.33|16.67|
> |9-Jan|Accrual|50.01| |50.01|
>
> In this case the 9th of Jan Accrual tx accrues 50.01 as a penalty even though
> a repayment was made before so the outstanding principal decreased which the
> penalty calculation should be based off.
>
> Correct behavior After step 4 would be (strikethrough means reversed):
> |*Date*|*Transaction type*|*Amount*|*Principal*|*Penalties*|
> |1-Jan|Disbursement|5000| | |
> |5-Jan|Accrual|16.67| |16.67|
> |7-Jan|Repayment|1000.0|983.33|16.67|
> |-9-Jan-|-Accrual-|-50.01-| |-50.01-|
> |9-Jan|Accrual|33.33| |33.33|
--
This message was sent by Atlassian Jira
(v8.20.10#820010)