TavernerPOS - Source Code
Clone:
git clone http://www.librarysmith.co.uk/tavernerPOS
viewgit/viewgit/inc/functions.php:49 Function create_function() is deprecated [8192]PaymentView - Clear text when entering tfAmountTendered if tfAmountTendered has selected text.
diff --git a/src/com/floreantpos/ui/views/payment/PaymentView.java b/src/com/floreantpos/ui/views/payment/PaymentView.java
old mode 100644
new mode 100755
index da86d9b..27a5110
--- a/src/com/floreantpos/ui/views/payment/PaymentView.java
+++ b/src/com/floreantpos/ui/views/payment/PaymentView.java
@@ -312,6 +312,7 @@ public class PaymentView extends JPanel {
}
}
else {
+ if (textField.getSelectedText()!=null) textField.setText("");
String string = textField.getText();
int index = string.indexOf('.');
if (index < 0) {
- Details
- Last Updated: Monday, 04 April 2016 02:04
- Hits: 40682083