Search in sources :

Example 1 with OpeningBalanceSavingsAccount

use of org.mifos.dto.domain.OpeningBalanceSavingsAccount in project head by mifos.

the class ImportLoansSavingsFacadeWebTier method saveSavings.

@Override
public ParsedSavingsDto saveSavings(ParsedSavingsDto parsedSavingsDto) {
    for (ImportedSavingDetail detail : parsedSavingsDto.getSuccessfullyParsedRows()) {
        OpeningBalanceSavingsAccount openingBalanceSavingsAccount = new OpeningBalanceSavingsAccount(detail.getCustomerId(), detail.getPrdOfferingId(), detail.getStatus(), detail.getSavingsAmount().toString(), detail.getSavingsBalance().toString(), detail.getDate(), detail.getAccountNumber());
        String savingsId = savingServiceFacade.createSavingsAccount(openingBalanceSavingsAccount);
    }
    return null;
}
Also used : ImportedSavingDetail(org.mifos.dto.domain.ImportedSavingDetail) OpeningBalanceSavingsAccount(org.mifos.dto.domain.OpeningBalanceSavingsAccount)

Aggregations

ImportedSavingDetail (org.mifos.dto.domain.ImportedSavingDetail)1 OpeningBalanceSavingsAccount (org.mifos.dto.domain.OpeningBalanceSavingsAccount)1