2012-07-19 13:40:31 +05:30
|
|
|
from __future__ import unicode_literals
|
2012-04-27 18:27:06 +05:30
|
|
|
def execute():
|
|
|
|
import webnotes
|
2013-01-08 18:29:24 +05:30
|
|
|
res = webnotes.conn.sql("""select distinct item_code, warehouse from `tabStock Ledger Entry`
|
|
|
|
where posting_time > '00:00:00' and posting_time < '00:01:00'""", as_dict=1)
|
2012-04-30 11:55:25 +05:30
|
|
|
webnotes.conn.sql("update `tabStock Ledger Entry` set posting_time = '00:00:00' where posting_time > '00:00:00' and posting_time < '00:01:00'")
|
2012-04-27 18:27:06 +05:30
|
|
|
|
2013-01-08 18:29:24 +05:30
|
|
|
from stock.stock_ledger import update_entries_after
|
|
|
|
for d in res:
|
|
|
|
update_entries_after({
|
2013-01-09 15:23:05 +05:30
|
|
|
"item_code": d.item_code,
|
|
|
|
"warehouse": d.warehouse,
|
2013-01-08 18:29:24 +05:30
|
|
|
})
|