fix: show current stock qty in Stock Entry PDF (backport #53761) (#54031)

This commit is contained in:
mergify[bot]
2026-04-06 05:36:09 +00:00
committed by GitHub
parent a71d32e668
commit af0116cdc5

View File

@@ -183,6 +183,13 @@ class StockEntry(StockController):
) )
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)) item.update(get_bin_details(item.item_code, item.s_warehouse))