Author: jleroux
Date: Sun Dec 17 06:53:29 2006
New Revision: 487991
URL:
http://svn.apache.org/viewvc?view=rev&rev=487991Log:
Prevents to show Product selection when using SKU touch when there is only one product
Modified:
incubator/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java
Modified: incubator/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java?view=diff&rev=487991&r1=487990&r2=487991==============================================================================
--- incubator/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java (original)
+++ incubator/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java Sun Dec 17 06:53:29 2006
@@ -162,7 +162,7 @@
productsMap.put(product.getString("productId"), product.get("internalName"));
}
}
- if (productsMap.size() > 0 && ButtonEventConfig.getButtonName(event).equals("menuSku")) {
+ if (productsMap.size() > 1 && ButtonEventConfig.getButtonName(event).equals("menuSku")) {
SelectProduct SelectProduct = new SelectProduct(productsMap, trans, pos);
productId = SelectProduct.openDlg();
}