[hotfix] [patch] stock entry additional cost for docstatus < 2
This commit is contained in:
parent
b1bae1bde8
commit
0a37f5575f
@ -17,7 +17,8 @@ def execute():
|
||||
""")
|
||||
|
||||
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:
|
||||
stock_entry = frappe.get_doc("Stock Entry", d)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user