<?php
 $CFG['globalEntity']['::ContactPerson']['type']['mandatory']=true; $CFG['globalEntity']['::ContactPerson']['type']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['type']['validation']= ['list'=> ['corporate', 'supplier']]; $CFG['globalEntity']['::ContactPerson']['idCompany']['mandatory']=true; $CFG['globalEntity']['::ContactPerson']['idCompany']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['idCompany']['validation']= ['type'=>'int', 'minValue'=>1]; $CFG['globalEntity']['::ContactPerson']['title']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['title']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['title']['validation']= ['maxLength'=>1]; $CFG['globalEntity']['::ContactPerson']['lastName']['mandatory']=true; $CFG['globalEntity']['::ContactPerson']['lastName']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['lastName']['validation']= ['maxLength'=>100]; $CFG['globalEntity']['::ContactPerson']['firstName']['mandatory']=true; $CFG['globalEntity']['::ContactPerson']['firstName']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['firstName']['validation']= ['maxLength'=>100]; $CFG['globalEntity']['::ContactPerson']['birthday']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['birthday']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['birthday']['validation']= ['type'=>'date', 'minValue'=>'1900-01-01', 'maxValue'=>TODAY_ISO]; $CFG['globalEntity']['::ContactPerson']['idOffice']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['idOffice']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['idOffice']['validation']= ['type'=>'int', 'minValue'=>0]; $CFG['globalEntity']['::ContactPerson']['department']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['department']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['department']['validation']= ['maxLength'=>100]; $CFG['globalEntity']['::ContactPerson']['job']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['job']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['job']['validation']= ['maxLength'=>100]; $CFG['globalEntity']['::ContactPerson']['role']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['role']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['role']['validation']= ['maxLength'=>30, 'list'=>$CFG['contactPersonsRolesList']]; $CFG['globalEntity']['::ContactPerson']['email']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['email']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['email']['validation']= ['maxLength'=>100, 'type'=>'email', 'allowedValues'=> ['-']]; $CFG['globalEntity']['::ContactPerson']['telephone']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['telephone']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['telephone']['validation']= ['maxLength'=>50]; $CFG['globalEntity']['::ContactPerson']['telephoneMobile']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['telephoneMobile']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['telephoneMobile']['validation']= ['maxLength'=>50]; $CFG['globalEntity']['::ContactPerson']['fax']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['fax']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['fax']['validation']= ['maxLength'=>50]; $CFG['globalEntity']['::ContactPerson']['comments']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['comments']['invisible']=false; $CFG['globalEntity']['::ContactPerson']['remarks']['mandatory']=false; $CFG['globalEntity']['::ContactPerson']['remarks']['invisible']=false; ?>