Author: jleroux
Date: Wed Oct 21 05:51:47 2009
New Revision: 827891
URL:
http://svn.apache.org/viewvc?rev=827891&view=revLog:
Allow to enter cardId from MSR
Modified:
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java
Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java?rev=827891&r1=827890&r2=827891&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java (original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ClientProfile.java Wed Oct 21 05:51:47 2009
@@ -212,7 +212,14 @@
Debug.logError(e, module);
}
m_dialog.repaint();
+ } else {
+ String card = m_cardEdit.getText();
+ if (SWIP_WITH_CARD && UtilValidate.isNotEmpty(m_cardEdit.getText())
+ && (card.endsWith("&") && card.startsWith(";"))) {
+ m_cardEdit.setText(card.substring(1, card.length() - 1));
+ }
}
+
return;
}