use of org.mifos.clientportfolio.newloan.domain.IndividualLoanImpl in project head by mifos.
the class IndividualLoanAssembler method assembleFrom.
@Override
public IndividualLoan assembleFrom(IndividualLoanRequest individualLoan) {
LoanOfferingBO loanProduct = this.loanProductDao.findBySystemId(individualLoan.getLoanProductId().globalIdentity());
ClientBO client = this.customerDao.findClientBySystemId(individualLoan.getClientId().globalIdentity());
int occurences = 12;
DateTime lastScheduledDate = new DateTime();
ScheduledEvent scheduledEvent = scheduledEventFactory.createScheduledEventFrom(loanProduct.getLoanOfferingMeetingValue());
List<DateTime> loanScheduleDates = scheduledDateGeneration.generateScheduledDates(occurences, lastScheduledDate, scheduledEvent, false);
// FIXME - assemble loanAmount from dto
Money loanAmount = null;
Double interestRate = Double.valueOf("10.0");
Integer interestDays = Integer.valueOf(AccountingRules.getNumberOfInterestDays());
return new IndividualLoanImpl();
}
Aggregations