Fixed: Bug preventing proper explosion of BOM containing virtual nodes (OFBIZ-12191)

Thanks: Nameet for report and fix and Jacopo for test.
This commit is contained in:
Pawan Verma
2021-03-15 13:33:01 +05:30
parent b2a59b12a9
commit e87e8f4418
@@ -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;