Merge pull request #19331 from rohitwaghchaure/minor_loan_not_able_to_make_jv

fix: not able to save journal entry for disbursement amount
This commit is contained in:
rohitwaghchaure
2019-10-16 19:02:09 +05:30
committed by GitHub

View File

@@ -124,6 +124,7 @@ def update_disbursement_status(doc):
""", (doc.payment_account, doc.name), as_dict=1)[0]
disbursement_date = None
status = ''
if not disbursement or disbursement.disbursed_amount == 0:
status = "Sanctioned"
elif disbursement.disbursed_amount == doc.loan_amount: