use of org.mifos.customers.group.business.GroupPerformanceHistoryUpdater.UpdateClientPerfHistoryForGroupLoanOnDisbursement in project head by mifos.
the class GroupPerformanceHistoryEntity method updateOnDisbursement.
public void updateOnDisbursement(LoanBO loan, Money disburseAmount) throws AccountException {
LoanOfferingBO loanOffering = loan.getLoanOffering();
updateLoanCounter(loanOffering, YesNoFlag.YES);
try {
if ((configService.isNewGlimEnabled() || configService.isGlimEnabled()) && loan.getAccountId() != null) {
CollectionUtils.forAllDo(accountBusinessService.getCoSigningClientsForGlim(loan.getAccountId()), new UpdateClientPerfHistoryForGroupLoanOnDisbursement(loan));
}
} catch (ServiceException e) {
throw new AccountException(e);
}
}
Aggregations