fix: Amount for closed states
This commit is contained in:
parent
8e4ae0af56
commit
f247686ace
@ -305,7 +305,7 @@ def get_amounts(amounts, against_loan, posting_date, payment_type):
|
|||||||
if not final_due_date:
|
if not final_due_date:
|
||||||
final_due_date = add_days(due_date, loan_type_details.grace_period_in_days)
|
final_due_date = add_days(due_date, loan_type_details.grace_period_in_days)
|
||||||
|
|
||||||
if against_loan_doc.status in ('Disbursed', 'Loan Closure Requested'):
|
if against_loan_doc.status in ('Disbursed', 'Loan Closure Requested', 'Closed'):
|
||||||
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
|
||||||
else:
|
else:
|
||||||
pending_principal_amount = against_loan_doc.disbursed_amount
|
pending_principal_amount = against_loan_doc.disbursed_amount
|
||||||
|
Loading…
x
Reference in New Issue
Block a user