Bug#2904321-Create Inventory Count List not taking negative qty products

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2904321&group_id=176962
This commit is contained in:
Carlos Ruiz 2011-03-08 12:31:00 -05:00
parent a6a69851ba
commit ad8d01291c
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,5 @@
-- Nov 28, 2010 9:58:00 AM CST
-- BF 2904321 - Create Inventory Count List not taking negative qty products
UPDATE AD_Column SET ValueMin=NULL,Updated=TO_DATE('2010-11-28 09:58:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3567
;

View File

@ -0,0 +1,5 @@
-- Nov 28, 2010 9:58:00 AM CST
-- BF 2904321 - Create Inventory Count List not taking negative qty products
UPDATE AD_Column SET ValueMin=NULL,Updated=TO_TIMESTAMP('2010-11-28 09:58:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3567
;

View File

@ -271,11 +271,14 @@ public class MInventoryLine extends X_M_InventoryLine
} }
// Enforce QtyCount >= 0 - teo_sarca BF [ 1722982 ] // Enforce QtyCount >= 0 - teo_sarca BF [ 1722982 ]
if (getQtyCount().signum() < 0) // GlobalQSS -> reverting this change because of Bug 2904321 - Create Inventory Count List not taking negative qty products
/*
if ( (!newRecord) && is_ValueChanged("QtyCount") && getQtyCount().signum() < 0)
{ {
log.saveError("Warning", Msg.getElement(getCtx(), COLUMNNAME_QtyCount)+" < 0"); log.saveError("Warning", Msg.getElement(getCtx(), COLUMNNAME_QtyCount)+" < 0");
return false; return false;
} }
*/
// Enforce Qty UOM // Enforce Qty UOM
if (newRecord || is_ValueChanged("QtyCount")) if (newRecord || is_ValueChanged("QtyCount"))
setQtyCount(getQtyCount()); setQtyCount(getQtyCount());