From e87e8f4418a6c5ea01a0f76b7af0959bd95bc352 Mon Sep 17 00:00:00 2001 From: Pawan Verma Date: Mon, 15 Mar 2021 13:27:56 +0530 Subject: [PATCH] Fixed: Bug preventing proper explosion of BOM containing virtual nodes (OFBIZ-12191) Thanks: Nameet for report and fix and Jacopo for test. --- .../main/java/org/apache/ofbiz/manufacturing/bom/BOMTree.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/bom/BOMTree.java b/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/bom/BOMTree.java index d543207b34..68a09ae0f7 100644 --- a/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/bom/BOMTree.java +++ b/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/bom/BOMTree.java @@ -96,6 +96,7 @@ public class BOMTree { this.delegator = delegator; this.dispatcher = dispatcher; + this.bomTypeId = bomTypeId; inputProduct = EntityQuery.use(delegator).from("Product").where("productId", productId).queryOne(); @@ -153,7 +154,7 @@ public class BOMTree { } catch (GenericEntityException gee) { root = null; } - this.bomTypeId = bomTypeId; + this.inDate = inDate; rootQuantity = BigDecimal.ONE; rootAmount = BigDecimal.ZERO;