Search in sources :

Example 1 with UpdateClientPerfHistoryForGroupLoanOnDisbursement

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);
    }
}
Also used : ServiceException(org.mifos.framework.exceptions.ServiceException) AccountException(org.mifos.accounts.exceptions.AccountException) UpdateClientPerfHistoryForGroupLoanOnDisbursement(org.mifos.customers.group.business.GroupPerformanceHistoryUpdater.UpdateClientPerfHistoryForGroupLoanOnDisbursement) LoanOfferingBO(org.mifos.accounts.productdefinition.business.LoanOfferingBO)

Aggregations

AccountException (org.mifos.accounts.exceptions.AccountException)1 LoanOfferingBO (org.mifos.accounts.productdefinition.business.LoanOfferingBO)1 UpdateClientPerfHistoryForGroupLoanOnDisbursement (org.mifos.customers.group.business.GroupPerformanceHistoryUpdater.UpdateClientPerfHistoryForGroupLoanOnDisbursement)1 ServiceException (org.mifos.framework.exceptions.ServiceException)1