Update set_party_name_in_payment_entry.py

This commit is contained in:
Nabin Hait
2016-09-02 16:17:42 +05:30
committed by GitHub
parent 0f0c131ba4
commit 54254cca58

View File

@@ -9,6 +9,8 @@ def execute():
customers = frappe._dict(frappe.db.sql("select name, customer_name from tabCustomer")) customers = frappe._dict(frappe.db.sql("select name, customer_name from tabCustomer"))
suppliers = frappe._dict(frappe.db.sql("select name, supplier_name from tabSupplier")) suppliers = frappe._dict(frappe.db.sql("select name, supplier_name from tabSupplier"))
frappe.reload_doc('accounts', 'doctype', 'payment_entry')
pe_list = frappe.db.sql("""select name, party_type, party from `tabPayment Entry` pe_list = frappe.db.sql("""select name, party_type, party from `tabPayment Entry`
where party is not null and party != ''""", as_dict=1) where party is not null and party != ''""", as_dict=1)
for pe in pe_list: for pe in pe_list: