mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
Fixed planned qty bug and patch to recalculate planned qty
This commit is contained in:
10
patches/1401/fix_planned_qty.py
Normal file
10
patches/1401/fix_planned_qty.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||||
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
import webnotes
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
from utilities.repost_stock import repost_stock
|
||||||
|
for d in webnotes.conn.sql("""select distinct production_item, fg_warehouse
|
||||||
|
from `tabProduction Order` where docstatus>0""", as_dict=1):
|
||||||
|
repost_stock(d.production_item, d.fg_warehouse)
|
||||||
Reference in New Issue
Block a user