mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
added repost funtion in stock_ledger
This commit is contained in:
@@ -235,3 +235,10 @@ class DocType:
|
|||||||
sle_obj.validate()
|
sle_obj.validate()
|
||||||
sle.save(new = 1)
|
sle.save(new = 1)
|
||||||
return sle.name
|
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