<?php
 $CFG['globalEntity']['::Service']['serviceCode']['mandatory']=true; $CFG['globalEntity']['::Service']['serviceCode']['invisible']=false; $CFG['globalEntity']['::Service']['serviceCode']['validation']=['maxLength'=>2]; $CFG['globalEntity']['::Service']['departureCountryCode']['mandatory']=false; $CFG['globalEntity']['::Service']['departureCountryCode']['invisible']=false; $CFG['globalEntity']['::Service']['departureCountryCode']['validation']=['maxLength'=>2]; $CFG['globalEntity']['::Service']['departureCityId']['mandatory']=false; $CFG['globalEntity']['::Service']['departureCityId']['invisible']=false; $CFG['globalEntity']['::Service']['departureCityId']['validation']=['type'=>'int', 'minValue'=>0]; $CFG['globalEntity']['::Service']['departureStationCode']['mandatory']=false; $CFG['globalEntity']['::Service']['departureStationCode']['invisible']=false; $CFG['globalEntity']['::Service']['departureStationCode']['validation']=['maxLength'=>10]; $CFG['globalEntity']['::Service']['destinationCountryCode']['mandatory']=false; $CFG['globalEntity']['::Service']['destinationCountryCode']['invisible']=false; $CFG['globalEntity']['::Service']['destinationCountryCode']['validation']=['maxLength'=>2]; $CFG['globalEntity']['::Service']['destinationCityId']['mandatory']=false; $CFG['globalEntity']['::Service']['destinationCityId']['invisible']=false; $CFG['globalEntity']['::Service']['destinationCityId']['validation']=['type'=>'int', 'minValue'=>0]; $CFG['globalEntity']['::Service']['destinationStationCode']['mandatory']=false; $CFG['globalEntity']['::Service']['destinationStationCode']['invisible']=false; $CFG['globalEntity']['::Service']['destinationStationCode']['validation']=['maxLength'=>10]; $CFG['globalEntity']['::Service']['period']['mandatory']=false; $CFG['globalEntity']['::Service']['period']['invisible']=false; $CFG['globalEntity']['::Service']['period']['validation']=['minValue'=>date(MYSQL_FORMAT, strtotime('-3 years')), 'maxValue'=>date(MYSQL_FORMAT, strtotime('+3 years'))]; $CFG['globalEntity']['::Service']['estInvoiceDate']['mandatory']=false; $CFG['globalEntity']['::Service']['estInvoiceDate']['invisible']=false; $CFG['globalEntity']['::Service']['estInvoiceDate']['validation']=['minValue'=>date(MYSQL_FORMAT, strtotime('-6 months')), 'maxValue'=>date(MYSQL_FORMAT, strtotime('+2 years'))]; $CFG['globalEntity']['::Service']['estCashDate']['mandatory']=false; $CFG['globalEntity']['::Service']['estCashDate']['invisible']=false; $CFG['globalEntity']['::Service']['estCashDate']['validation']=['minValue'=>date(MYSQL_FORMAT, strtotime('-6 months')), 'maxValue'=>date(MYSQL_FORMAT, strtotime('+2 years'))]; $CFG['globalEntity']['::Service']['description']['mandatory']=false; $CFG['globalEntity']['::Service']['description']['invisible']=false; $CFG['globalEntity']['::Service']['description']['validation']=[]; $CFG['globalEntity']['::Service']['preferences']['mandatory']=false; $CFG['globalEntity']['::Service']['preferences']['invisible']=false; $CFG['globalEntity']['::Service']['preferences']['validation']=[]; $CFG['globalEntity']['::Service']['comments']['mandatory']=false; $CFG['globalEntity']['::Service']['comments']['invisible']=false; $CFG['globalEntity']['::Service']['comments']['validation']=[]; $CFG['globalEntity']['::Service']['remarks']['mandatory']=false; $CFG['globalEntity']['::Service']['remarks']['invisible']=false; $CFG['globalEntity']['::Service']['remarks']['validation']=[]; $CFG['globalEntity']['::Service']['idUser']['mandatory']=true; $CFG['globalEntity']['::Service']['idUser']['invisible']=false; $CFG['globalEntity']['::Service']['idUser']['validation']= ['type'=>'int', 'minValue'=>1]; $CFG['globalEntity']['::Service']['idOffice']['mandatory']=true; $CFG['globalEntity']['::Service']['idOffice']['invisible']=false; $CFG['globalEntity']['::Service']['idOffice']['validation']= ['type'=>'int', 'minValue'=>1]; $CFG['globalEntity']['::Service']['_special']['serviceCancelReasons'] = ['serviceRedone', 'duplicatedService', 'noOffersFound', 'priceHigh', 'justInformative', 'noConfirmFromClient', 'cancelledInExtSys', 'unknown']; $CFG['globalEntity']['::Service']['_special']['allowOrderCancelWithSupplierInvoices'] = false; 