mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-22 19:06:36 +00:00
fix: fix sub assembly qty calculation in production plan when bom level >= 1 (backport #47296) (#47315)
* fix: fix sub assembly qty calculation in production plan when bom level >= 1 (cherry picked from commitbfc4ce1d5d) * fix: logical error (cherry picked from commitee10afc074) --------- Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
@@ -1768,6 +1768,7 @@ def get_sub_assembly_items(
|
|||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
stock_qty = stock_qty - _bin_dict.projected_qty
|
stock_qty = stock_qty - _bin_dict.projected_qty
|
||||||
|
sub_assembly_items.append(d.item_code)
|
||||||
elif warehouse:
|
elif warehouse:
|
||||||
bin_details.setdefault(d.item_code, get_bin_details(d, company, for_warehouse=warehouse))
|
bin_details.setdefault(d.item_code, get_bin_details(d, company, for_warehouse=warehouse))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user