FINERACT-2081: Payments after loan charge - payment allocation

This commit is contained in:
Marta Jankovics
2024-09-25 10:31:08 +02:00
committed by Adam Saghy
parent 2d0c8db993
commit 31c9079ad9
17 changed files with 746 additions and 228 deletions
@@ -120,6 +120,10 @@ public enum ChargeCalculationType {
|| isPercentageOfDisbursementAmount();
}
public boolean hasInterest() {
return isPercentageOfInterest() || isPercentageOfAmountAndInterest();
}
public boolean isPercentageOfDisbursementAmount() {
return this.value.equals(ChargeCalculationType.PERCENT_OF_DISBURSEMENT_AMOUNT.getValue());
}