thesmallstar commented on a change in pull request #1745:
URL: https://github.com/apache/fineract/pull/1745#discussion_r643140222
##########
File path:
fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/AccrualBasedAccountingProcessorForLoan.java
##########
@@ -215,17 +215,21 @@ private void
createJournalEntriesForRepaymentsAndWriteOffs(final LoanDTO loanDTO
// handle fees payment of writeOff (and reversals)
if (feesAmount != null && !(feesAmount.compareTo(BigDecimal.ZERO) ==
0)) {
+
totalDebitAmount = totalDebitAmount.add(feesAmount);
if (isIncomeFromFee) {
- GLAccount account =
this.helper.getLinkedGLAccountForLoanProduct(loanProductId,
- AccrualAccountsForLoan.INCOME_FROM_FEES.getValue(),
paymentTypeId);
- if (accountMap.containsKey(account)) {
- BigDecimal amount =
accountMap.get(account).add(feesAmount);
- accountMap.put(account, amount);
- } else {
- accountMap.put(account, feesAmount);
- }
+
this.helper.createCreditJournalEntryOrReversalForLoanCharges(office,
currencyCode,
+ AccrualAccountsForLoan.INCOME_FROM_FEES.getValue(),
loanProductId, loanId, transactionId, transactionDate,
+ feesAmount, isReversal,
loanTransactionDTO.getFeePayments());
+ // GLAccount account =
this.helper.getLinkedGLAccountForLoanProduct(loanProductId,
+ // AccrualAccountsForLoan.INCOME_FROM_FEES.getValue(),
paymentTypeId);
+ // if (accountMap.containsKey(account)) {
+ // BigDecimal amount = accountMap.get(account).add(feesAmount);
+ // accountMap.put(account, amount);
+ // } else {
+ // accountMap.put(account, feesAmount);
+ // }
Review comment:
why is the commented code still there?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]