From 061a7deb5a87113c7c331199873450be2186418d Mon Sep 17 00:00:00 2001 From: uthadehikaru Date: Fri, 9 Nov 2012 15:46:55 +0700 Subject: [PATCH] fixed error params on getQtyOnHand --- org.adempiere.base/src/org/compiere/model/MStorageOnHand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MStorageOnHand.java b/org.adempiere.base/src/org/compiere/model/MStorageOnHand.java index e530a5bebe..308ef3c493 100644 --- a/org.adempiere.base/src/org/compiere/model/MStorageOnHand.java +++ b/org.adempiere.base/src/org/compiere/model/MStorageOnHand.java @@ -646,7 +646,8 @@ public class MStorageOnHand extends X_M_StorageOnHand .append(" WHERE oh.M_Product_ID=?") .append(" AND EXISTS(SELECT 1 FROM M_Locator loc WHERE oh.M_Locator_ID=loc.M_Locator_ID AND loc.M_Warehouse_ID=?)"); - params.add(M_Product_ID,M_Warehouse_ID); + params.add(M_Product_ID); + params.add(M_Warehouse_ID); // With ASI if (M_AttributeSetInstance_ID != 0) {