commit | a76d3827ec5355b7eecedc3e66bfd85b119d5211 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Tue Aug 30 19:24:57 2022 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Tue Aug 30 19:24:57 2022 +0530 |
tree | 6b0872c3cd1c5a12eb74d1794db3af5c250e8d81 | |
parent | eefc9b71725d5530e3bd259a299d3c0673385a4a [diff] |
chore: Add check for principal amount
diff --git a/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py b/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py index 9a6bcd4..cac3f1f 100644 --- a/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py +++ b/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py
@@ -236,6 +236,7 @@ AND l.is_term_loan =1 AND rs.payment_date <= %s AND rs.is_accrued=0 {0} + AND rs.principal_amount > 0 AND l.status = 'Disbursed' ORDER BY rs.payment_date""".format( condition