Merge pull request #881 from vishwasbabu/develop-new
MIFOSX-865 bug fixes for accruals batch job
This commit is contained in:
+2
-1
@@ -145,7 +145,8 @@ public class LoanAccrualWritePlatformServiceImpl implements LoanAccrualWritePlat
|
||||
accountingBridgeData.put("officeId", loanScheduleAccrualData.getOfficeId());
|
||||
accountingBridgeData.put("currency", loanScheduleAccrualData.getCurrencyData());
|
||||
accountingBridgeData.put("cashBasedAccountingEnabled", false);
|
||||
accountingBridgeData.put("accrualBasedAccountingEnabled", true);
|
||||
accountingBridgeData.put("upfrontAccrualBasedAccountingEnabled", false);
|
||||
accountingBridgeData.put("periodicAccrualBasedAccountingEnabled", true);
|
||||
|
||||
final List<Map<String, Object>> newLoanTransactions = new ArrayList<Map<String, Object>>();
|
||||
newLoanTransactions.add(transactionMap);
|
||||
|
||||
+1
-1
@@ -1321,7 +1321,7 @@ public class LoanReadPlatformServiceImpl implements LoanReadPlatformService {
|
||||
.append(" where ((if(ls.fee_charges_waived_derived is null , ls.fee_charges_amount,(ls.fee_charges_amount-ls.fee_charges_waived_derived)) <> if(ls.accrual_fee_charges_derived is null,0, ls.accrual_fee_charges_derived))")
|
||||
.append(" or (if(ls.penalty_charges_waived_derived is null , ls.penalty_charges_amount,(ls.penalty_charges_amount-ls.penalty_charges_waived_derived)) <> if(ls.accrual_penalty_charges_derived is null,0,ls.accrual_penalty_charges_derived))")
|
||||
.append(" or (if(ls.interest_waived_derived is null , ls.interest_amount,(ls.interest_amount-ls.interest_waived_derived)) <> if(ls.accrual_interest_derived is null,0,ls.accrual_interest_derived)))")
|
||||
.append(" and loan.loan_status_id=? and mpl.accounting_type=? and loan.is_npa=0");
|
||||
.append(" and loan.loan_status_id=? and mpl.accounting_type=? and loan.is_npa=0 and ls.duedate <= CURDATE()");
|
||||
return this.jdbcTemplate.query(sqlBuilder.toString(), mapper, new Object[] { LoanStatus.ACTIVE.getValue(),
|
||||
AccountingRuleType.ACCRUAL_PERIODIC.getValue() });
|
||||
}
|
||||
|
||||
-1
@@ -1790,7 +1790,6 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("null")
|
||||
@Transactional
|
||||
public void applyChargeToOverdueLoanInstallment(final Long loanId, final Long loanChargeId, final Integer periodNumber,
|
||||
final JsonCommand command) {
|
||||
|
||||
Reference in New Issue
Block a user