.getDefaultEcts(gratuityEvent.getExecutionYear()));
final Money result =
getDfaTotalAmount().multiply(
numberOfEnrolments.divide(ectsCredits, SCALE_FOR_INTERMEDIATE_CALCULATIONS, RoundingMode.HALF_EVEN));
return result.lessOrEqualThan(getDfaTotalAmount()) ? result : getDfaTotalAmount();
}
public DFAGratuityByNumberOfEnrolmentsPR edit(Money dfaTotalAmount, BigDecimal partialAcceptedPercentage) {
check(this, RolePredicates.MANAGER_PREDICATE);
return edit(new DateTime(), dfaTotalAmount, partialAcceptedPercentage);