adjusts validation for discount (purchase invoices) and budget (TA)
[tine20] / tine20 / Sales / js / InvoiceEditDialog.js
index 98201d9..8cc8570 100644 (file)
@@ -345,6 +345,7 @@ Tine.Sales.InvoiceEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
             }),
             name: 'sales_tax',
             decimalSeparator: Tine.Tinebase.registry.get('decimalSeparator'),
+            regex: /^[0-9]+\.?[0-9]*$/,
             fieldLabel: this.app.i18n._('Sales Tax (percent)'),
             columnWidth: 1/3,
             listeners: {