commit | 7e185fb0f273510cbccc872bad36b4823049892d | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Sat Apr 02 17:42:09 2022 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Sat Apr 02 17:42:09 2022 +0530 |
tree | 01fb3acf3483041b3a6022be29cf65c7805551dd | |
parent | 1b2c6a5b78d4ee2e31817eb78bb1f614b672eda4 [diff] | |
parent | c8ead0a7ab2074b1599474c79b1a1f64650ba829 [diff] |
Merge branch 'develop' of https://github.com/frappe/erpnext into patch-3
diff --git a/erpnext/loan_management/doctype/loan_repayment/loan_repayment.py b/erpnext/loan_management/doctype/loan_repayment/loan_repayment.py index 8cffe88..9033a3a 100644 --- a/erpnext/loan_management/doctype/loan_repayment/loan_repayment.py +++ b/erpnext/loan_management/doctype/loan_repayment/loan_repayment.py
@@ -745,6 +745,8 @@ if payment_type == "Loan Closure": amounts["payable_principal_amount"] = amounts["pending_principal_amount"] amounts["interest_amount"] += amounts["unaccrued_interest"] - amounts["payable_amount"] = amounts["payable_principal_amount"] + amounts["interest_amount"] + amounts["payable_amount"] = ( + amounts["payable_principal_amount"] + amounts["interest_amount"] + amounts["penalty_amount"] + ) return amounts