use of org.mifos.application.collectionsheet.business.CollectionSheetEntryAccountFeeActionDto in project head by mifos.
the class TestObjectFactory method getBulkEntryAccountFeeActionViews.
public static List<CollectionSheetEntryAccountFeeActionDto> getBulkEntryAccountFeeActionViews(final AccountActionDateEntity accountActionDateEntity) {
List<CollectionSheetEntryAccountFeeActionDto> bulkEntryFeeViews = new ArrayList<CollectionSheetEntryAccountFeeActionDto>();
Set<AccountFeesActionDetailEntity> feeActions = null;
if (accountActionDateEntity instanceof LoanScheduleEntity) {
feeActions = ((LoanScheduleEntity) accountActionDateEntity).getAccountFeesActionDetails();
} else if (accountActionDateEntity instanceof CustomerScheduleEntity) {
feeActions = ((CustomerScheduleEntity) accountActionDateEntity).getAccountFeesActionDetails();
}
if (feeActions != null && feeActions.size() > 0) {
for (AccountFeesActionDetailEntity accountFeesActionDetail : feeActions) {
bulkEntryFeeViews.add(getBulkEntryAccountFeeActionView(accountFeesActionDetail));
}
}
return bulkEntryFeeViews;
}
Aggregations