adjusts validation for discount (purchase invoices) and budget (TA)
[tine20] / tine20 / Sales / js / CustomerEditDialog.js
index 7941356..b386c17 100644 (file)
@@ -265,7 +265,8 @@ Tine.Sales.CustomerEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
                                     allowDecimals : true
                                 }),
                                 decimalPrecision: 2,
-                                decimalSeparator: Tine.Tinebase.registry.get('decimalSeparator')
+                                decimalSeparator: Tine.Tinebase.registry.get('decimalSeparator'),
+                                regex: /^[0-9]+\.?[0-9]*$/
                             }], [{
                                 name: 'iban',
                                 fieldLabel: this.app.i18n._('IBAN')