Author: jleroux
Date: Wed Oct 21 11:01:48 2009
New Revision: 827960

URL: http://svn.apache.org/viewvc?rev=827960&view=rev
Log:
The default error screen was too narrow

Modified:
    ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java

Modified: 
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java?rev=827960&r1=827959&r2=827960&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java 
(original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/PaymentEvents.java 
Wed Oct 21 11:01:48 2009
@@ -351,16 +351,17 @@
 
     public static synchronized void processSale(PosScreen pos) {
         PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
+        Locale defaultLocale = Locale.getDefault();
         if (trans.isEmpty()) {
             PosScreen newPos = pos.showPage("pospanel");
             newPos.showDialog("dialog/error/noitems");
         } else if (trans.getTotalDue().compareTo(BigDecimal.ZERO) > 0) {
-            pos.showDialog("dialog/error/notenoughfunds");
+            pos.showDialog("dialog/error/exception", 
UtilProperties.getMessage("Xuilabels", "NOT_ENOUGH_FUNDS", defaultLocale));
             trans.clearPayment("CASH");
         } else {
             // manual locks (not secured; will be unlocked on clear)
             pos.setWaitCursor();
-            
PosScreen.currentScreen.getOutput().print(UtilProperties.getMessage(PosTransaction.resource,"PosProcessing",Locale.getDefault()));
+            
PosScreen.currentScreen.getOutput().print(UtilProperties.getMessage(PosTransaction.resource,
 "PosProcessing", defaultLocale));
             pos.getInput().setLock(true);
             pos.getButtons().setLock(true);
             pos.refresh(false);


Reply via email to