first cut error fixes

This commit is contained in:
Nabin Hait
2013-01-09 15:23:05 +05:30
parent 902e8609e5
commit 26d46556a4
10 changed files with 35 additions and 48 deletions

View File

@@ -8,8 +8,6 @@ def execute():
from stock.stock_ledger import update_entries_after
for d in res:
update_entries_after({
item_code: d.item_code,
warehouse: d.warehouse,
posting_date: '2000-01-01',
posting_time: '12:01'
"item_code": d.item_code,
"warehouse": d.warehouse,
})

View File

@@ -82,10 +82,10 @@ def cleanup_wrong_sle():
webnotes.conn.sql("update `tabStock Ledger Entry` set is_cancelled = 'Yes' where name = %s", d[3])
create_comment(d[3])
update_entries_after({
item_code: d[0],
warehouse: d[1],
posting_date: "2012-07-01",
posting_time: "12:05"
"item_code": d[0],
"warehouse": d[1],
"posting_date": "2012-07-01",
"posting_time": "12:05"
})
def create_comment(dn):

View File

@@ -22,12 +22,7 @@ def execute():
i=0
for d in res:
try:
update_entries_after({
item_code: d[0],
warehouse: d[1],
posting_date: "2000-01-01",
posting_time: "12:00"
})
update_entries_after({ "item_code": d[0], "warehouse": d[1] })
except:
pass
i += 1