mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
first cut error fixes
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user