commit
c381327e6e
@ -9,6 +9,8 @@ def execute():
|
|||||||
if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")):
|
if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
frappe.reload_doctype("Purchase Invoice")
|
||||||
|
|
||||||
for pi in frappe.db.sql("""select name from `tabPurchase 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):
|
where update_stock=1 and docstatus=1 order by posting_date asc""", as_dict=1):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user