Reload bin in reserved qty reposting patch

This commit is contained in:
Nabin Hait 2016-04-20 11:53:34 +05:30
parent 4e30b84d88
commit 867dfec64b

View File

@ -6,7 +6,8 @@ import frappe
from erpnext.stock.stock_balance import update_bin_qty, get_reserved_qty
def execute():
frappe.reload_doctype("Sales Order Item")
for doctype in ("Sales Order Item", "Bin"):
frappe.reload_doctype(doctype)
repost_for = frappe.db.sql("""
select