From 6360fdf4712c3786526a74db3c02852ff3f21d53 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Mon, 03 Aug 2015 15:24:41 -0400
Subject: [PATCH] - ported some patches

---
 interface/web/client/form/client.tform.php |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php
index 35d7d09..eab4e02 100644
--- a/interface/web/client/form/client.tform.php
+++ b/interface/web/client/form/client.tform.php
@@ -381,7 +381,12 @@
 					'class' => 'validate_client',
 					'function' => 'check_vat_id',
 					'errmsg'=> 'invalid_vat_id'),
-				),
+			),
+			'filters'   => array( 0 => array( 	'event' => 'SAVE',
+												'type' => 'TRIM'),
+								1 => array( 	'event' => 'SAVE',
+												'type' => 'TOUPPER')
+			),
 		),
 		'company_id' => array (
 			'datatype' => 'VARCHAR',
@@ -447,7 +452,12 @@
 			'width'  => '30',
 			'maxlength' => '255',
 			'rows'  => '',
-			'cols'  => ''
+			'cols'  => '',
+			'filters'   => array( 0 => array( 	'event' => 'SAVE',
+												'type' => 'TRIM'),
+								1 => array( 	'event' => 'SAVE',
+												'type' => 'TOUPPER')
+			),
 		),
 		'bank_account_swift' => array (
 			'datatype' => 'VARCHAR',
@@ -458,7 +468,12 @@
 			'width'  => '30',
 			'maxlength' => '255',
 			'rows'  => '',
-			'cols'  => ''
+			'cols'  => '',
+			'filters'   => array( 0 => array( 	'event' => 'SAVE',
+												'type' => 'TRIM'),
+								1 => array( 	'event' => 'SAVE',
+												'type' => 'TOUPPER')
+			),
 		),
 		'notes' => array (
 			'datatype' => 'TEXT',

--
Gitblit v1.9.1