Search in sources :

Example 1 with CollectionSheetEntryAccountFeeActionDto

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;
}
Also used : LoanScheduleEntity(org.mifos.accounts.loan.business.LoanScheduleEntity) CollectionSheetEntryAccountFeeActionDto(org.mifos.application.collectionsheet.business.CollectionSheetEntryAccountFeeActionDto) AccountFeesActionDetailEntity(org.mifos.accounts.business.AccountFeesActionDetailEntity) CustomerScheduleEntity(org.mifos.customers.business.CustomerScheduleEntity) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 AccountFeesActionDetailEntity (org.mifos.accounts.business.AccountFeesActionDetailEntity)1 LoanScheduleEntity (org.mifos.accounts.loan.business.LoanScheduleEntity)1 CollectionSheetEntryAccountFeeActionDto (org.mifos.application.collectionsheet.business.CollectionSheetEntryAccountFeeActionDto)1 CustomerScheduleEntity (org.mifos.customers.business.CustomerScheduleEntity)1