Esempio n. 1
0
 protected void checkIfCanAddAmount(Money amountToPay, final Event event, final DateTime when) {
   if (amountToPay.compareTo(calculateTotalAmountToPay(event, when)) < 0) {
     throw new DomainExceptionWithLabelFormatter(
         "error.accounting.postingRules.FixedAmountPR.amount.being.payed.must.match.amount.to.pay",
         event.getDescriptionForEntryType(getEntryType()));
   }
 }
 private void checkIfCanAddAmount(
     final Money amountToPay, final Event event, final DateTime when) {
   if (amountToPay.compareTo(calculateTotalAmountToPay(event, when)) < 0) {
     throw new DomainExceptionWithLabelFormatter(
         "error.DegreeChangeIndividualCandidacyPR.amount.being.payed.must.match.amount.to.pay",
         event.getDescriptionForEntryType(getEntryType()));
   }
 }