brotherton-erpnext/erpnext/patches/v5_0/capacity_planning.py

9 lines
303 B
Python

# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
def execute():
frappe.reload_doc("stock", "doctype", "stock_entry")
frappe.db.sql("update `tabStock Entry` set additional_operating_cost = total_fixed_cost")