You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pa...@apache.org on 2021/03/15 08:01:40 UTC

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

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 <pa...@hotwaxsystems.com>
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;