mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 16:56:57 +00:00
Merge pull request #30550 from frappe/mergify/bp/version-13-hotfix/pr-30191
fix: incorrect payable amount for loan closure (backport #30191)
This commit is contained in:
@@ -747,5 +747,8 @@ def calculate_amounts(against_loan, posting_date, payment_type=""):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user