entryDTO.getAmountToPay(), transactionDetail));
}
private void checkIfCanAddAmount(final Money amountToPay, final Event event, final DateTime when) {
if (amountToPay.compareTo(calculateTotalAmountToPay(event, when)) < 0) {
throw new DomainExceptionWithLabelFormatter(
"error.accounting.postingRules.ImprovementOfApprovedEnrolmentPR.amount.being.payed.must.match.amount.to.pay",
event.getDescriptionForEntryType(getEntryType()));
}
}