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;
}
Aggregations