From 00bf46d67edc4d6f27481c028e8c38011d9a24f1 Mon Sep 17 00:00:00 2001 From: uthadehikaru Date: Thu, 25 Oct 2012 13:19:33 +0700 Subject: [PATCH] fixed bug when getQtyvailable --- .../src/org/compiere/model/MStorageReservation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MStorageReservation.java b/org.adempiere.base/src/org/compiere/model/MStorageReservation.java index 2abe17891a..df52be023f 100644 --- a/org.adempiere.base/src/org/compiere/model/MStorageReservation.java +++ b/org.adempiere.base/src/org/compiere/model/MStorageReservation.java @@ -116,7 +116,8 @@ public class MStorageReservation extends X_M_StorageReservation { .append(" FROM M_StorageOnHand s") .append(" WHERE s.M_Product_ID=? AND s.M_Locator_ID=?"); - params.add(M_Product_ID, M_Locator_ID); + params.add(M_Product_ID); + params.add(M_Locator_ID); // With ASI if (M_AttributeSetInstance_ID != 0) {