mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: show current stock qty in Stock Entry PDF (#53761)
This commit is contained in:
@@ -202,6 +202,13 @@ class StockEntry(StockController, SubcontractingInwardController):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def onload(self):
|
def onload(self):
|
||||||
|
self.update_items_from_bin_details()
|
||||||
|
|
||||||
|
def before_print(self, settings=None):
|
||||||
|
super().before_print(settings)
|
||||||
|
self.update_items_from_bin_details()
|
||||||
|
|
||||||
|
def update_items_from_bin_details(self):
|
||||||
for item in self.get("items"):
|
for item in self.get("items"):
|
||||||
item.update(get_bin_details(item.item_code, item.s_warehouse or item.t_warehouse))
|
item.update(get_bin_details(item.item_code, item.s_warehouse or item.t_warehouse))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user