mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
set stock balance as per serial no count
Cherry Picked and Modified by @anandpdoshi Conflicts: stock/doctype/stock_ledger/stock_ledger.py utilities/repost_stock.py
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
from erpnext.utilities.repost_stock import set_stock_balance_as_per_serial_no
|
||||
frappe.db.auto_commit_on_many_writes = 1
|
||||
|
||||
set_stock_balance_as_per_serial_no()
|
||||
|
||||
frappe.db.auto_commit_on_many_writes = 0
|
||||
Reference in New Issue
Block a user