usedDiscountValue = true;
this.discountValue = this.discountValue.subtract(installment.getAmount());
return true;
}
Money installmentAmount =
installment.calculateAmount(this.event, this.currentTransactionDate, this.discountPercentage,
isToApplyPenalty(this.event, installment));
if (hasDiscountValue()) {
installmentAmount = installmentAmount.subtract(this.discountValue);
this.discountedValue = this.discountValue;
}
if (hasMoneyFor(installmentAmount)) {
this.amount = this.amount.subtract(installmentAmount);