fix for bug in accounting

This commit is contained in:
Vishwas Babu AJ
2013-03-22 01:13:51 +05:30
parent d24dc10818
commit 58d5acda0a
@@ -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,