fix: consider child nodes while getting bin details

(cherry picked from commit c716dcc01e)
This commit is contained in:
s-aga-r
2022-12-29 12:34:18 +05:30
committed by Mergify
parent d03085259d
commit e2964088b7
3 changed files with 30 additions and 13 deletions

View File

@@ -26,7 +26,7 @@ class SellingController(StockController):
super(SellingController, self).onload()
if self.doctype in ("Sales Order", "Delivery Note", "Sales Invoice"):
for item in self.get("items"):
item.update(get_bin_details(item.item_code, item.warehouse))
item.update(get_bin_details(item.item_code, item.warehouse, include_child_warehouses=True))
def validate(self):
super(SellingController, self).validate()