From 58d5acda0a363ab241da741de116d8dec19e0534 Mon Sep 17 00:00:00 2001 From: Vishwas Babu AJ Date: Fri, 22 Mar 2013 01:13:51 +0530 Subject: [PATCH] fix for bug in accounting --- .../journalentry/service/AccountingProcessorHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/service/AccountingProcessorHelper.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/service/AccountingProcessorHelper.java index b0fbb8820..dcbca5553 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/service/AccountingProcessorHelper.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/service/AccountingProcessorHelper.java @@ -211,8 +211,8 @@ public class AccountingProcessorHelper { final Long loanProductId, final Long loanId, final String transactionId, final Date transactionDate, final BigDecimal amount) { GLAccount debitAccount = getLinkedGLAccountForLoanProduct(loanProductId, accountTypeToDebitId); GLAccount creditAccount = getLinkedGLAccountForLoanProduct(loanProductId, accountTypeToCreditId); - createCreditJournalEntryForLoan(office, debitAccount, loanId, transactionId, transactionDate, amount); - createDebitJournalEntryForLoan(office, creditAccount, loanId, transactionId, transactionDate, amount); + createDebitJournalEntryForLoan(office, debitAccount, loanId, transactionId, transactionDate, amount); + createCreditJournalEntryForLoan(office, creditAccount, loanId, transactionId, transactionDate, amount); } private void createDebitJournalEntryOrReversalForLoan(final Office office, final int accountMappingTypeId, final Long loanProductId,