This is an automated email from the ASF dual-hosted git repository.
pawan pushed a commit to branch release18.12
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/release18.12 by this push:
new e87e8f4 Fixed: Bug preventing proper explosion of BOM containing virtual nodes (OFBIZ-12191)
e87e8f4 is described below
commit e87e8f4418a6c5ea01a0f76b7af0959bd95bc352
Author: Pawan Verma <
[hidden email]>
AuthorDate: Mon Mar 15 13:27:56 2021 +0530
Fixed: Bug preventing proper explosion of BOM containing virtual nodes (OFBIZ-12191)
Thanks: Nameet for report and fix and Jacopo for test.
---
.../src/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 d543207..68a09ae 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;