fixes in reconciliation patch

This commit is contained in:
Anand Doshi 2013-01-14 15:12:44 +05:30
parent 54d6f18402
commit b1cf2119e9

View File

@ -10,7 +10,9 @@ def execute():
def rename_fields():
args = [["Stock Ledger Entry", "bin_aqat", "qty_after_transaction"],
["Stock Ledger Entry", "fcfs_stack", "stock_queue"]]
["Stock Ledger Entry", "fcfs_stack", "stock_queue"],
["Stock Reconciliation", "reconciliation_date", "posting_date"],
["Stock Reconciliation", "reconciliation_time", "posting_time"]]
for doctype, old_fieldname, new_fieldname in args:
webnotes.conn.sql("""update `tab%s` set `%s`=`%s`""" %
(doctype, new_fieldname, old_fieldname))