fix: consider child nodes while getting bin details

This commit is contained in:
s-aga-r
2022-12-29 12:34:18 +05:30
parent 9858d9d968
commit c716dcc01e
3 changed files with 30 additions and 13 deletions

View File

@@ -23,7 +23,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()