[BUG-327] Stop interest calculation as well as posting income transaction, once the loan has moved to NPA state

This commit is contained in:
Vishwa
2016-05-10 09:56:32 +05:30
parent d1067e5a84
commit 45e250331a
@@ -2073,6 +2073,7 @@ public class LoanReadPlatformServiceImpl implements LoanReadPlatformService {
.append(" inner join m_loan_interest_recalculation_additional_details as adddet on adddet.loan_repayment_schedule_id = repsch.id ")
.append(" left join m_loan_transaction as trans on (trans.is_reversed <> 1 and trans.transaction_type_enum = 19 and trans.loan_id = loan.id and trans.transaction_date = adddet.effective_date) ")
.append(" where loan.loan_status_id = 300 ")
.append(" and loan.is_npa = 0 ")
.append(" and adddet.effective_date is not null ")
.append(" and trans.transaction_date is null ")
.append(" and adddet.effective_date < ? ");