MIFOSX-2435 : Differentiate between charges and penalty
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ public final class LoanSummaryWrapper {
|
||||
final MonetaryCurrency currency) {
|
||||
Money total = Money.zero(currency);
|
||||
for (final LoanCharge charge : charges) {
|
||||
if(charge.isActive()){
|
||||
if(charge.isActive() && !charge.isPenaltyCharge()){
|
||||
total = total.plus(charge.getAmountWaived(currency));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user