mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
Update repost_stock_for_deleted_bins_for_merging_items.py
This commit is contained in:
@@ -3,6 +3,8 @@ import frappe
|
|||||||
from erpnext.stock.stock_balance import repost_stock
|
from erpnext.stock.stock_balance import repost_stock
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doc('manufacturing', 'doctype', 'production_order_item')
|
||||||
|
|
||||||
modified_items = frappe.db.sql_list("""
|
modified_items = frappe.db.sql_list("""
|
||||||
select name from `tabItem`
|
select name from `tabItem`
|
||||||
where is_stock_item=1 and modified >= '2016-10-31'
|
where is_stock_item=1 and modified >= '2016-10-31'
|
||||||
|
|||||||
Reference in New Issue
Block a user