Marius Burkard
2016-01-20 337473b29af23892d2bcbe4cc97c087aa5ff8b30
interface/web/client/form/client.tform.php
@@ -116,7 +116,10 @@
         'maxlength' => '255',
         'rows'  => '',
         'cols'  => '',
         'searchable' => 1
         'searchable' => 1,
         'filters'   => array( 0 => array( 'event' => 'SAVE',
                                    'type' => 'TRIM'),
         ),
      ),
      'contact_name' => array (
         'datatype' => 'VARCHAR',
@@ -131,7 +134,10 @@
         'maxlength' => '255',
         'rows'  => '',
         'cols'  => '',
         'searchable' => 1
         'searchable' => 1,
         'filters'   => array( 0 => array( 'event' => 'SAVE',
                                    'type' => 'TRIM'),
         ),
      ),
      'customer_no' => array (
         'datatype' => 'VARCHAR',
@@ -322,9 +328,10 @@
            2 => array( 'event' => 'SAVE',
               'type' => 'TOLOWER')
         ),
         'validators' => array (  0 => array ( 'type' => 'REGEX',
               'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
               'errmsg'=> 'email_error_isemail'),
         'validators' => array (
            0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'email_error_isemail'),
            1 => array ( 'type' => 'NOTEMPTY',
               'errmsg'=> 'email_error_empty'),
         ),
         'default' => '',
         'value'  => '',
@@ -372,7 +379,14 @@
               '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'),
                        2 => array(    'event' => 'SAVE',
                                    'type' => 'NOWHITESPACE')
         ),
      ),
      'company_id' => array (
         'datatype' => 'VARCHAR',
@@ -438,7 +452,14 @@
         'width'  => '30',
         'maxlength' => '255',
         'rows'  => '',
         'cols'  => ''
         'cols'  => '',
         'filters'   => array( 0 => array(    'event' => 'SAVE',
                                    'type' => 'TRIM'),
                        1 => array(    'event' => 'SAVE',
                                    'type' => 'TOUPPER'),
                        2 => array(    'event' => 'SAVE',
                                    'type' => 'NOWHITESPACE')
         ),
      ),
      'bank_account_swift' => array (
         'datatype' => 'VARCHAR',
@@ -449,7 +470,14 @@
         'width'  => '30',
         'maxlength' => '255',
         'rows'  => '',
         'cols'  => ''
         'cols'  => '',
         'filters'   => array( 0 => array(    'event' => 'SAVE',
                                    'type' => 'TRIM'),
                        1 => array(    'event' => 'SAVE',
                                    'type' => 'TOUPPER'),
                        2 => array(    'event' => 'SAVE',
                                    'type' => 'NOWHITESPACE')
         ),
      ),
      'notes' => array (
         'datatype' => 'TEXT',
@@ -472,9 +500,8 @@
            2 => array( 'event' => 'SAVE',
               'type' => 'TOLOWER')
         ),
         'validators' => array (  0 => array ( 'type' => 'REGEX',
               'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
               'errmsg'=> 'paypal_email_error_isemail'),
         'validators' => array (
            0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'email_error_isemail'),
         ),
         'default' => '',
         'value'  => '',