# HG changeset patch
# User Ranjith S R <ranjith@qualiantech.com>
# Date 1518609774 -19800
#      Wed Feb 14 17:32:54 2018 +0530
# Node ID f5bea7de161dcdcd0b6354ec77b9cd6bade88650
# Parent  9e73d22ce9ce0622108a2352f416522690a6cc85
Fixed issue 37911 : Added Keyboard keyMatcher for Cashup and Cash Management keyboards

diff -r 9e73d22ce9ce -r f5bea7de161d web/org.openbravo.retail.posterminal/js/cashmgmt/view/cashmgmtkeyboard.js
--- a/web/org.openbravo.retail.posterminal/js/cashmgmt/view/cashmgmtkeyboard.js	Tue Feb 13 09:29:33 2018 +0100
+++ b/web/org.openbravo.retail.posterminal/js/cashmgmt/view/cashmgmtkeyboard.js	Wed Feb 14 17:32:54 2018 +0530
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2012-2015 Openbravo S.L.U.
+ * Copyright (C) 2012-2018 Openbravo S.L.U.
  * Licensed under the Openbravo Commercial License version 1.0
  * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
  * or in the legal folder of this module distribution.
@@ -140,6 +140,9 @@
       });
       args.context.showToolbar('cashMgmtToolbar');
     });
-
+  },
+  initComponents: function () {
+    this.inherited(arguments);
+    this.keyMatcher = new RegExp('^([0-9]|\\' + OB.Format.defaultDecimalSymbol + ')$', 'g');
   }
 });
\ No newline at end of file
diff -r 9e73d22ce9ce -r f5bea7de161d web/org.openbravo.retail.posterminal/js/closecash/view/closekeyboard.js
--- a/web/org.openbravo.retail.posterminal/js/closecash/view/closekeyboard.js	Tue Feb 13 09:29:33 2018 +0100
+++ b/web/org.openbravo.retail.posterminal/js/closecash/view/closekeyboard.js	Wed Feb 14 17:32:54 2018 +0530
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2012-2017 Openbravo S.L.U.
+ * Copyright (C) 2012-2018 Openbravo S.L.U.
  * Licensed under the Openbravo Commercial License version 1.0
  * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
  * or in the legal folder of this module distribution.
@@ -164,6 +164,9 @@
         });
       }
     }, this);
+  },
+  initComponents: function () {
+    this.inherited(arguments);
+    this.keyMatcher = new RegExp('^([0-9]|\\' + OB.Format.defaultDecimalSymbol + ')$', 'g');
   }
-
 });
\ No newline at end of file
