alberto-art3ch commented on code in PR #3973:
URL: https://github.com/apache/fineract/pull/3973#discussion_r1679612952
##########
fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/AccrualBasedAccountingProcessorForSavings.java:
##########
@@ -205,35 +212,45 @@ else if
(savingsTransactionDTO.getTransactionType().isFeeDeduction() && savingsT
savingsProductId, paymentTypeId, savingsId,
transactionId, transactionDate, overdraftAmount, isReversal,
penaltyPayments);
if (isPositive) {
+ final ChargePaymentDTO chargePaymentDTO =
penaltyPayments.get(0);
+ AccrualAccountsForSavings accountTypeToBeDebited =
AccrualAccountsForSavings.SAVINGS_CONTROL;
Review Comment:
Done! variable moved to be set before. This variable will be changed when we
include Accrued Charges
##########
fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/AccrualBasedAccountingProcessorForSavings.java:
##########
@@ -205,35 +212,45 @@ else if
(savingsTransactionDTO.getTransactionType().isFeeDeduction() && savingsT
savingsProductId, paymentTypeId, savingsId,
transactionId, transactionDate, overdraftAmount, isReversal,
penaltyPayments);
if (isPositive) {
+ final ChargePaymentDTO chargePaymentDTO =
penaltyPayments.get(0);
+ AccrualAccountsForSavings accountTypeToBeDebited =
AccrualAccountsForSavings.SAVINGS_CONTROL;
+
this.helper.createAccrualBasedJournalEntriesAndReversalsForSavingsCharges(office,
currencyCode,
- AccrualAccountsForSavings.SAVINGS_CONTROL,
AccrualAccountsForSavings.INCOME_FROM_PENALTIES,
- savingsProductId, paymentTypeId, savingsId,
transactionId, transactionDate,
- amount.subtract(overdraftAmount), isReversal,
penaltyPayments);
+ accountTypeToBeDebited,
AccrualAccountsForSavings.INCOME_FROM_PENALTIES, savingsProductId,
paymentTypeId,
+ savingsId, transactionId, transactionDate,
amount.subtract(overdraftAmount), isReversal, penaltyPayments);
}
} else {
this.helper.createAccrualBasedJournalEntriesAndReversalsForSavingsCharges(office,
currencyCode,
AccrualAccountsForSavings.OVERDRAFT_PORTFOLIO_CONTROL,
AccrualAccountsForSavings.INCOME_FROM_FEES,
savingsProductId, paymentTypeId, savingsId,
transactionId, transactionDate, overdraftAmount, isReversal,
feePayments);
if (isPositive) {
+ final ChargePaymentDTO chargePaymentDTO =
feePayments.get(0);
Review Comment:
Done! variable moved to be set before. This variable will be changed when we
include Accrued Charges
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]