mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
16 lines
600 B
Python
16 lines
600 B
Python
from __future__ import unicode_literals
|
|
def execute():
|
|
import webnotes
|
|
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)
|
|
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'")
|
|
|
|
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'
|
|
})
|