commit | 334f0327803f650b0aef583f090a7c7ff9ffed60 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Tue Nov 22 13:30:13 2016 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Tue Nov 22 13:30:13 2016 +0530 |
tree | b4b4c5586e82edc4ce99b4615b9b6ac99a4ccc85 | |
parent | ee874a2a3667b239e44d12c37e02ac92a1823a67 [diff] |
fix patch
diff --git a/erpnext/patches/v7_0/repost_gle_for_pi_with_update_stock.py b/erpnext/patches/v7_0/repost_gle_for_pi_with_update_stock.py index 2883a8a..9f159be 100644 --- a/erpnext/patches/v7_0/repost_gle_for_pi_with_update_stock.py +++ b/erpnext/patches/v7_0/repost_gle_for_pi_with_update_stock.py
@@ -9,6 +9,8 @@ if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")): return + frappe.reload_doctype("Purchase Invoice") + for pi in frappe.db.sql("""select name from `tabPurchase Invoice` where update_stock=1 and docstatus=1 order by posting_date asc""", as_dict=1):