fix: incorrect warehouse set from SO to MR

(cherry picked from commit 0da8d9c869)
This commit is contained in:
Rohit Waghchaure
2025-06-15 19:17:01 +05:30
committed by Mergify
parent d60ab92082
commit fbfc6a6f62

View File

@@ -1048,6 +1048,7 @@ def get_exploded_items(item_details, company, bom_no, include_non_stock_items, p
item.purchase_uom,
item_uom.conversion_factor,
item.safety_stock,
bom.item.as_("main_bom_item"),
)
.where(
(bei.docstatus < 2)
@@ -1759,6 +1760,7 @@ def get_raw_materials_of_sub_assembly_items(
item.purchase_uom,
item_uom.conversion_factor,
item.safety_stock,
bom.item.as_("main_bom_item"),
)
.where(
(bei.docstatus == 1)