You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by "adamsaghy (via GitHub)" <gi...@apache.org> on 2023/03/27 08:15:52 UTC

[GitHub] [fineract] adamsaghy commented on a diff in pull request #3073: FINERACT-1890-LoanAccrualTransaction-created-event

adamsaghy commented on code in PR #3073:
URL: https://github.com/apache/fineract/pull/3073#discussion_r1148947284


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanAccountDomainServiceJpa.java:
##########
@@ -227,7 +230,7 @@ public LoanTransaction makeRepayment(final LoanTransactionType repaymentTransact
         }
 
         postJournalEntries(loan, existingTransactionIds, existingReversedTransactionIds, isAccountTransfer, isLoanToLoanTransfer);
-
+        loanAccrualTransactionBusinessEventService.raiseBusinessEventForAccrualTransactions(loan, existingTransactionIds);

Review Comment:
   Please raise the event after the "recalculateAccruals" method which might created new Accrual transaction as well.



##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanAccountDomainServiceJpa.java:
##########
@@ -405,6 +408,8 @@ public LoanTransaction makeChargePayment(final Loan loan, final Long chargeId, f
         }
 
         postJournalEntries(loan, existingTransactionIds, existingReversedTransactionIds, isAccountTransfer);
+        loanAccrualTransactionBusinessEventService.raiseBusinessEventForAccrualTransactions(loan, existingTransactionIds);

Review Comment:
   Please raise the event after the "recalculateAccruals" method which might created new Accrual transaction as well.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org