Author: jleroux
Date: Sat Oct 24 16:49:27 2009
New Revision: 829408
URL:
http://svn.apache.org/viewvc?rev=829408&view=revLog:
In r829406 (Add a status bar to the POS) I forgot to clean before updating
Modified:
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PromoEvents.java
Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PromoEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PromoEvents.java?rev=829408&r1=829407&r2=829408&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PromoEvents.java (original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PromoEvents.java Sat Oct 24 16:49:27 2009
@@ -48,13 +48,14 @@
} else if ("PROMOCODE".equals(lastFunc[0])) {
String promoCode = input.value();
if (UtilValidate.isNotEmpty(promoCode)) {
+ StatusBar statusbar = new StatusBar(pos);
+ statusbar.clearPromoCode();
String result = trans.addProductPromoCode(promoCode);
if (result != null) {
pos.showDialog("dialog/error/exception", result);
input.clearFunction("PROMOCODE");
} else {
input.clearFunction("PROMOCODE");
- StatusBar statusbar = new StatusBar(pos);
statusbar.printPromoCode(promoCode);
NavagationEvents.showPosScreen(pos);
pos.refresh();