[patch][fix] party model - create debtors and creditors only if parent account exists
This commit is contained in:
parent
1686876b23
commit
4888a5dc0d
@ -19,6 +19,7 @@ def create_receivable_payable_account():
|
||||
receivable_payable_accounts = frappe._dict()
|
||||
|
||||
def _create_account(args):
|
||||
if args["parent_account"]:
|
||||
account_id = frappe.db.get_value("Account",
|
||||
{"account_name": args["account_name"], "company": args["company"]})
|
||||
if not account_id:
|
||||
|
Loading…
Reference in New Issue
Block a user