diff --git a/erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py b/erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py index 8a456382ab..c49752213c 100644 --- a/erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py +++ b/erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py @@ -18,7 +18,7 @@ def execute(): pass for d in frappe.db.sql("""select distinct item_code, source_warehouse - from `tabProduction Order Item` + from `tabWork Order Item` where docstatus=1 and transferred_qty > required_qty and source_warehouse is not null and source_warehouse != ''""", as_list=1):