[ofbiz-framework] branch trunk 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 trunk 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 trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


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

commit b5b062de2e1f9efb2f7b70291e19b0a6c7bf7a02
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 128f3a3..33ecd05 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
@@ -93,6 +93,7 @@ public class BOMTree {
 
         this.delegator = delegator;
         this.dispatcher = dispatcher;
+        this.bomTypeId = bomTypeId;
 
         inputProduct = EntityQuery.use(delegator).from("Product").where("productId", productId).queryOne();
 
@@ -152,7 +153,7 @@ public class BOMTree {
         } catch (GenericEntityException gee) {
             root = null;
         }
-        this.bomTypeId = bomTypeId;
+
         this.inDate = inDate;
         rootQuantity = BigDecimal.ONE;
         rootAmount = BigDecimal.ZERO;