mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
fix: Use grace period in days for calculation of due date
This commit is contained in:
@@ -282,7 +282,8 @@ def get_amounts(amounts, against_loan, posting_date, payment_type):
|
|||||||
'payable_principal_amount': flt(entry.payable_principal_amount)
|
'payable_principal_amount': flt(entry.payable_principal_amount)
|
||||||
})
|
})
|
||||||
|
|
||||||
final_due_date = due_date
|
if not final_due_date:
|
||||||
|
final_due_date = add_days(due_date, loan_type_details.grace_period_in_days)
|
||||||
|
|
||||||
pending_principal_amount = against_loan_doc.total_payment - against_loan_doc.total_principal_paid - against_loan_doc.total_interest_payable
|
pending_principal_amount = against_loan_doc.total_payment - against_loan_doc.total_principal_paid - against_loan_doc.total_interest_payable
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user