commit | 61363d2ceda3934224404daf3acf9d4bf23dc373 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Thu Apr 30 22:22:44 2020 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Thu Apr 30 22:22:44 2020 +0530 |
tree | 902c39457ba6f2f94044a9b6ae4484f7e2156790 | |
parent | 4226191ec75be83690115c1398d008937d9c1693 [diff] |
fix: Initialize interest_paid as zero
diff --git a/erpnext/loan_management/doctype/loan_repayment/loan_repayment.py b/erpnext/loan_management/doctype/loan_repayment/loan_repayment.py index ed1eed2..a5ed5de 100644 --- a/erpnext/loan_management/doctype/loan_repayment/loan_repayment.py +++ b/erpnext/loan_management/doctype/loan_repayment/loan_repayment.py
@@ -106,6 +106,7 @@ def allocate_amounts(self, paid_entries): self.set('repayment_details', []) self.principal_amount_paid = 0 + interest_paid = 0 if self.amount_paid - self.penalty_amount > 0 and paid_entries: interest_paid = self.amount_paid - self.penalty_amount