use of org.mifos.accounts.productdefinition.business.PrdOfferingPenaltiesEntity in project head by mifos.
the class LoanPrdAction method getPenaltiesSelected.
private List<PenaltyDto> getPenaltiesSelected(LoanOfferingBO loanOffering) {
List<PenaltyDto> penaltySelected = new ArrayList<PenaltyDto>();
for (PrdOfferingPenaltiesEntity prdOfferingPenalties : loanOffering.getLoanOfferingPenalties()) {
PenaltyBO penalty = prdOfferingPenalties.getPenalty();
penalty = penaltyDao.findPenaltyById(penalty.getPenaltyId());
penaltySelected.add(penalty.toDto());
}
return penaltySelected;
}
Aggregations