adjusts validation for discount (purchase invoices) and budget (TA)
[tine20] / tine20 / Sales / js / SupplierEditDialog.js
index f53aef9..0edca5c 100644 (file)
@@ -245,7 +245,8 @@ Tine.Sales.SupplierEditDialog = 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')