From dfc3078e136106594e052b8197e2fd0588bf6343 Mon Sep 17 00:00:00 2001 From: Vishwas Babu A J Date: Mon, 7 Oct 2013 21:41:42 +0530 Subject: [PATCH] MIFOSX-727: Loan Write off account not being persisted on creating a new Loan Product --- .../ProductToGLAccountMappingWritePlatformServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/producttoaccountmapping/service/ProductToGLAccountMappingWritePlatformServiceImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/producttoaccountmapping/service/ProductToGLAccountMappingWritePlatformServiceImpl.java index 9ec60469e..3b8643f53 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/producttoaccountmapping/service/ProductToGLAccountMappingWritePlatformServiceImpl.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/producttoaccountmapping/service/ProductToGLAccountMappingWritePlatformServiceImpl.java @@ -79,12 +79,15 @@ public class ProductToGLAccountMappingWritePlatformServiceImpl implements Produc CASH_ACCOUNTS_FOR_LOAN.INCOME_FROM_PENALTIES.getValue()); // expenses + this.loanProductToGLAccountMappingHelper.saveLoanToExpenseAccountMapping(element, + LOAN_PRODUCT_ACCOUNTING_PARAMS.LOSSES_WRITTEN_OFF.getValue(), loanProductId, + CASH_ACCOUNTS_FOR_LOAN.LOSSES_WRITTEN_OFF.getValue()); + + // liabilities this.loanProductToGLAccountMappingHelper .saveLoanToLiabilityAccountMapping(element, LOAN_PRODUCT_ACCOUNTING_PARAMS.OVERPAYMENT.getValue(), loanProductId, CASH_ACCOUNTS_FOR_LOAN.OVERPAYMENT.getValue()); - // liabilities - // advanced accounting mappings this.loanProductToGLAccountMappingHelper.savePaymentChannelToFundSourceMappings(command, element, loanProductId, null); this.loanProductToGLAccountMappingHelper.saveChargesToIncomeAccountMappings(command, element, loanProductId, null);