mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 03:58:26 +00:00
added repost funtion in stock_ledger
This commit is contained in:
@@ -235,3 +235,10 @@ class DocType:
|
||||
sle_obj.validate()
|
||||
sle.save(new = 1)
|
||||
return sle.name
|
||||
|
||||
def repost(self):
|
||||
"""
|
||||
Repost everything!
|
||||
"""
|
||||
for wh in sql("select name from tabWarehouse"):
|
||||
get_obj('Warehouse', wh[0]).repost_stock()
|
||||
|
||||
Reference in New Issue
Block a user