| | |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '', |
| | | 'searchable' => 1 |
| | | 'searchable' => 1, |
| | | 'filters' => array( 0 => array( 'event' => 'SAVE', |
| | | 'type' => 'TRIM'), |
| | | ), |
| | | ), |
| | | 'contact_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '', |
| | | 'searchable' => 1 |
| | | 'searchable' => 1, |
| | | 'filters' => array( 0 => array( 'event' => 'SAVE', |
| | | 'type' => 'TRIM'), |
| | | ), |
| | | ), |
| | | 'customer_no' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 2 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i', |
| | | 'errmsg'=> 'email_error_isemail'), |
| | | 1 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'email_error_empty'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | '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', |
| | |
| | | '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', |
| | |
| | | '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', |