Bug Fix [ 1725383 ] QtyOrdered wrongly updated

This commit is contained in:
Carlos Ruiz 2007-05-25 09:13:36 +00:00
parent 78135ac724
commit 063f967bf8
1 changed files with 9 additions and 0 deletions

View File

@ -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)
{