[hotfix] [patch] stock entry additional cost for docstatus < 2

This commit is contained in:
Anand Doshi 2015-08-13 15:53:20 +05:30
parent b1bae1bde8
commit 0a37f5575f

View File

@ -17,7 +17,8 @@ def execute():
""") """)
stock_entries = frappe.db.sql_list("""select name from `tabStock Entry` stock_entries = frappe.db.sql_list("""select name from `tabStock Entry`
where purpose in ('Manufacture', 'Repack') and ifnull(additional_operating_cost, 0)!=0""") where purpose in ('Manufacture', 'Repack') and ifnull(additional_operating_cost, 0)!=0
and docstatus < 2""")
for d in stock_entries: for d in stock_entries:
stock_entry = frappe.get_doc("Stock Entry", d) stock_entry = frappe.get_doc("Stock Entry", d)