From 063f967bf8e78d2054211eff99163efd41f35997 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 25 May 2007 09:13:36 +0000 Subject: [PATCH] Bug Fix [ 1725383 ] QtyOrdered wrongly updated --- base/src/org/compiere/model/MStorage.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/base/src/org/compiere/model/MStorage.java b/base/src/org/compiere/model/MStorage.java index 383f6eae2c..6cc844bcbf 100644 --- a/base/src/org/compiere/model/MStorage.java +++ b/base/src/org/compiere/model/MStorage.java @@ -401,6 +401,15 @@ public class MStorage extends X_M_Storage + ",M_Product_ID=" + M_Product_ID + ",ASI=" + M_AttributeSetInstance_ID); return false; } + + // CarlosRuiz - globalqss - Fix [ 1725383 ] QtyOrdered wrongly updated + MProduct prd = new MProduct(ctx, M_Product_ID, trxName); + if (prd.getM_AttributeSet_ID() == 0) { + // Product doesn't manage attribute set, always reserved with 0 + reservationAttributeSetInstance_ID = 0; + } + // + MStorage storage0 = null; if (M_AttributeSetInstance_ID != reservationAttributeSetInstance_ID) {