Adam Saghy created FINERACT-2319:
------------------------------------
Summary: Repayment allocation prefers future dated penalty first
Key: FINERACT-2319
URL: https://issues.apache.org/jira/browse/FINERACT-2319
Project: Apache Fineract
Issue Type: Bug
Affects Versions: 1.11.0
Reporter: Adam Saghy
{*}Steps to reproduce{*}:
* Progressive loan
* 1 installment with 30 days
* No interest
* payment allocation rules are
** Penalty
** Interest
** Principal
** Fee
* 10/20: Create a loan and disburse EUR 100
* 10/22: Repayment of EUR 100
* 10/24: First Repayment reversed
* 10/26: Repayment of EUR 100
* 10/28: Second Repayment reversed
* 10/28: Penalty Charge of EUR 10 added.
* 10/28: Backdated repayment of EUR 101 on 10/26 (transaction date)
*New (wrong) behaviour*
EUR101 repayment allocated as:
* Principal: 91
* Penalty: 10
*Old (correct) behaviour*
EUR101 repayment allocated as:
* Principal: 100
* Penalty: 1
--
This message was sent by Atlassian Jira
(v8.20.10#820010)