mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
party model patch fix
This commit is contained in:
@@ -79,7 +79,7 @@ def set_party_in_jv_and_gl_entry(receivable_payable_accounts):
|
|||||||
|
|
||||||
for dt in ["Journal Entry Account", "GL Entry"]:
|
for dt in ["Journal Entry Account", "GL Entry"]:
|
||||||
records = frappe.db.sql("""select name, account from `tab%s`
|
records = frappe.db.sql("""select name, account from `tab%s`
|
||||||
where account in (%s) and ifnull(party, '') != ''""" %
|
where account in (%s) and ifnull(party, '') = ''""" %
|
||||||
(dt, ", ".join(['%s']*len(account_map))), tuple(account_map.keys()), as_dict=1)
|
(dt, ", ".join(['%s']*len(account_map))), tuple(account_map.keys()), as_dict=1)
|
||||||
for i, d in enumerate(records):
|
for i, d in enumerate(records):
|
||||||
account_details = account_map.get(d.account, {})
|
account_details = account_map.get(d.account, {})
|
||||||
|
|||||||
Reference in New Issue
Block a user