mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
committed by
mergify-bot
parent
6c3f5687f2
commit
47ced6810f
@@ -131,7 +131,7 @@ def create_loan(source_name, target_doc=None, submit=0):
|
|||||||
def update_accounts(source_doc, target_doc, source_parent):
|
def update_accounts(source_doc, target_doc, source_parent):
|
||||||
account_details = frappe.get_all("Loan Type",
|
account_details = frappe.get_all("Loan Type",
|
||||||
fields=["mode_of_payment", "payment_account","loan_account", "interest_income_account", "penalty_income_account"],
|
fields=["mode_of_payment", "payment_account","loan_account", "interest_income_account", "penalty_income_account"],
|
||||||
filters = {'name': source_doc.loan_type})[0]
|
filters = {'name': source_doc.loan_type})[0]
|
||||||
|
|
||||||
if source_doc.is_secured_loan:
|
if source_doc.is_secured_loan:
|
||||||
target_doc.maximum_loan_amount = 0
|
target_doc.maximum_loan_amount = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user