mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
stock reconciliation - rewrite in progress
This commit is contained in:
14
patches/january_2013/stock_reconciliation.py
Normal file
14
patches/january_2013/stock_reconciliation.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
rename_fields()
|
||||
|
||||
def rename_fields():
|
||||
webnotes.reload_doc("stock", "doctype", "stock_ledger_entry")
|
||||
|
||||
args = [["Stock Ledger Entry", "bin_aqat", "qty_after_transaction"],
|
||||
["Stock Ledger Entry", "fcfs_stack", "stock_queue"]]
|
||||
for doctype, old_fieldname, new_fieldname in args:
|
||||
webnotes.conn.sql("""update `tab%s` set `%s`=`%s`""" %
|
||||
(doctype, new_fieldname, old_fieldname))
|
||||
|
||||
Reference in New Issue
Block a user