fix: fix sub assembly qty calculation in production plan when bom level >= 1

This commit is contained in:
Mihir Kandoi
2025-04-28 21:09:12 +05:30
parent 70787eb5e0
commit bfc4ce1d5d

View File

@@ -1804,6 +1804,7 @@ def get_sub_assembly_items(
continue
else:
stock_qty = stock_qty - _bin_dict.projected_qty
sub_assembly_items.append(d.item_code)
elif warehouse:
bin_details.setdefault(d.item_code, get_bin_details(d, company, for_warehouse=warehouse))