mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Update fix_reserved_qty_for_sub_contract.py
This commit is contained in:
@@ -6,6 +6,7 @@ import frappe
|
|||||||
from erpnext.stock.utils import get_bin
|
from erpnext.stock.utils import get_bin
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doc("buying", "doctype", "purchase_order_item_supplied")
|
||||||
for d in frappe.db.sql("""
|
for d in frappe.db.sql("""
|
||||||
select distinct rm_item_code, reserve_warehouse
|
select distinct rm_item_code, reserve_warehouse
|
||||||
from `tabPurchase Order Item Supplied`
|
from `tabPurchase Order Item Supplied`
|
||||||
@@ -26,4 +27,4 @@ def execute():
|
|||||||
bin_doc = get_bin(d[0], d[1])
|
bin_doc = get_bin(d[0], d[1])
|
||||||
bin_doc.update_reserved_qty_for_production()
|
bin_doc.update_reserved_qty_for_production()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user