[ofbiz-framework] branch release17.12 updated: Fixed: Bug preventing proper explosion of BOM containing virtual nodes (OFBIZ-12191)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch release17.12 updated: Fixed: Bug preventing proper explosion of BOM containing virtual nodes (OFBIZ-12191)

Pawan Verma-2
This is an automated email from the ASF dual-hosted git repository.

pawan pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new af5d61b  Fixed: Bug preventing proper explosion of BOM containing virtual nodes (OFBIZ-12191)
af5d61b is described below

commit af5d61b051eb4bd2afa1be9035b67b7ba742314d
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;