MIFOSX-1008 post journalentries if earned interest is > 0
This commit is contained in:
+6
-3
@@ -86,9 +86,12 @@ public class CashBasedAccountingProcessorForSavings implements AccountingProcess
|
|||||||
* Applications
|
* Applications
|
||||||
**/
|
**/
|
||||||
else if (savingsTransactionDTO.getTransactionType().isInterestPosting()) {
|
else if (savingsTransactionDTO.getTransactionType().isInterestPosting()) {
|
||||||
this.helper.createCashBasedJournalEntriesAndReversalsForSavings(office, currencyCode,
|
//Post journal entry if earned interest amount is greater than zero
|
||||||
CASH_ACCOUNTS_FOR_SAVINGS.INTEREST_ON_SAVINGS, CASH_ACCOUNTS_FOR_SAVINGS.SAVINGS_CONTROL, savingsProductId,
|
if (savingsTransactionDTO.getAmount().compareTo(BigDecimal.ZERO) == 1) {
|
||||||
paymentTypeId, savingsId, transactionId, transactionDate, amount, isReversal);
|
this.helper.createCashBasedJournalEntriesAndReversalsForSavings(office, currencyCode,
|
||||||
|
CASH_ACCOUNTS_FOR_SAVINGS.INTEREST_ON_SAVINGS, CASH_ACCOUNTS_FOR_SAVINGS.SAVINGS_CONTROL, savingsProductId,
|
||||||
|
paymentTypeId, savingsId, transactionId, transactionDate, amount, isReversal);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Handle Fees Deductions and reversals of Fees Deductions **/
|
/** Handle Fees Deductions and reversals of Fees Deductions **/
|
||||||
|
|||||||
Reference in New Issue
Block a user