<?php

///////////////////////////////////////////////////////////////////////////////////////////////////
// Define each field of the current Entity - for each field you can set the following keys: ///////
// 'mandatory', 'invisible' and 'validation'. Use the '_special' field key code to allow adding ///
// extra validations that are not checked automatically. //////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

// reservationCode
$CFG['globalEntity']['::Order']['reservationCode']['mandatory']=false;
$CFG['globalEntity']['::Order']['reservationCode']['invisible']=false;
$CFG['globalEntity']['::Order']['reservationCode']['validation']= ['maxLength'=>50];

// reservation type
$CFG['globalEntity']['::Order']['resType']['mandatory']=false;
$CFG['globalEntity']['::Order']['resType']['invisible']=false;
$CFG['globalEntity']['::Order']['resType']['validation']= ['maxLength'=>20];

// flag
$CFG['globalEntity']['::Order']['flag']['mandatory']=false;
$CFG['globalEntity']['::Order']['flag']['invisible']=false;
$CFG['globalEntity']['::Order']['flag']['validation']= ['maxLength'=>15];

// servicesType
$CFG['globalEntity']['::Order']['servicesType']['mandatory']=false;
$CFG['globalEntity']['::Order']['servicesType']['invisible']=false;
$CFG['globalEntity']['::Order']['servicesType']['validation']= ['maxLength'=>20];

// idMiceProject
$CFG['globalEntity']['::Order']['idMiceProject']['mandatory']=false;
$CFG['globalEntity']['::Order']['idMiceProject']['invisible']=false;
$CFG['globalEntity']['::Order']['idMiceProject']['validation']= ['type'=>'int', 'minValue'=>0];

// description
$CFG['globalEntity']['::Order']['description']['mandatory']=false;
$CFG['globalEntity']['::Order']['description']['invisible']=false;

// comments
$CFG['globalEntity']['::Order']['comments']['mandatory']=false;
$CFG['globalEntity']['::Order']['comments']['invisible']=false;

// idUser
$CFG['globalEntity']['::Order']['idUser']['mandatory']=true;
$CFG['globalEntity']['::Order']['idUser']['invisible']=false;
$CFG['globalEntity']['::Order']['idUser']['validation']= ['type'=>'int', 'minValue'=>1];

// idOffice
$CFG['globalEntity']['::Order']['idOffice']['mandatory']=true;
$CFG['globalEntity']['::Order']['idOffice']['invisible']=false;
$CFG['globalEntity']['::Order']['idOffice']['validation']= ['type'=>'int', 'minValue'=>1];

// idDepartment
$CFG['globalEntity']['::Order']['idDepartment']['mandatory']=true;
$CFG['globalEntity']['::Order']['idDepartment']['invisible']=false;
$CFG['globalEntity']['::Order']['idDepartment']['validation']= ['type'=>'int', 'minValue'=>1];

