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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
217 B
Python
Raw Normal View History

from __future__ import unicode_literals
import frappe
def execute():
for d in frappe.db.get_all("Stock Entry"):
se = frappe.get_doc("Stock Entry", d.name)
se.set_total_incoming_outgoing_value()
se.db_update()