Search in sources :

Example 1 with PrdOfferingPenaltiesEntity

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;
}
Also used : PenaltyDto(org.mifos.dto.domain.PenaltyDto) PenaltyBO(org.mifos.accounts.penalties.business.PenaltyBO) PrdOfferingPenaltiesEntity(org.mifos.accounts.productdefinition.business.PrdOfferingPenaltiesEntity) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 PenaltyBO (org.mifos.accounts.penalties.business.PenaltyBO)1 PrdOfferingPenaltiesEntity (org.mifos.accounts.productdefinition.business.PrdOfferingPenaltiesEntity)1 PenaltyDto (org.mifos.dto.domain.PenaltyDto)1