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;