<?php

///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
// DOCUMENT FIELDS ////////////////////////////////////////////////////////////////////////////////
// $CFG['documents']['fieldsList'] [documentType] [fieldCode] = array() - the list of fields for //
// every type of document (associative array) /////////////////////////////////////////////////////
// THE VALUE INDICATES THE FOLLOWING: /////////////////////////////////////////////////////////////
//  - 'type' indicates the type of the value can be 'numeric', 'date', 'string', 'text', 'array', 'object',
//  - 'disabled' indicates if the field is available at all to be used on the documents ///////////
//  - 'category' indicates the category of the field //////////////////////////////////////////////
// (the boolean keys can be omitted and are considered false by default) //////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////
// ORDER //////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['documents']['fieldsList']['order']['resId'] = ['type' => 'numeric', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['resObj'] = ['type' => 'object', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['resConvId'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['resNumber'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['resCode'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['documentNumber'] = ['type' => 'numeric', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['documentSeriesId'] = ['type' => 'numeric', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['documentSeriesCode'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['resDateIso'] = ['type' => 'date', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['resDateStandard'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['flag'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['servicesType'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['startDateIso'] = ['type' => 'date', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['endDateIso'] = ['type' => 'date', 'category' => 'general'];

$CFG['documents']['fieldsList']['order']['ownerCustId'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustName'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustLastName'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustFirstName'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustTitle'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustCountryName'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustCityName'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustPNC'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustIdSeries'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustIdNumber'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustIdReleaseBy'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustIdReleaseDateIso'] = ['type' => 'date', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustIdReleaseDateStandard'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustPassportNo'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustPassportType'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustPassportExpireDateIso'] = ['type' => 'date', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustPassportExpireDateStandard'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustAddress'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustDeliveryAddress'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustZipCode'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustBankName'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustBankAccount'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustTelephone'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustTelephoneMobile'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustFax'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCustEmail'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['customersListNames'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['customersListNamesWithTitle'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['customersListNamesChdWithAge'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['customersListNamesBirthdayPassport'] = ['type'=>'string', 'category'=>'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpId'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpCompanyFull'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpCompany'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpCompanyPrefix'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpCompanySuffix'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpAlias'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpTrust'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpFiscalCode'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpRegNo'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpTelephone'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpFax'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpEmail'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpMainOffAddress'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['ownerCorpType'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['corporatesListNames'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['contactPersonName'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['contactPersonTel'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['contactPersonTelMobile'] = ['type' => 'string', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['totalPax'] = ['type' => 'numeric', 'category' => 'clients'];
$CFG['documents']['fieldsList']['order']['paxDetails'] = ['type' => 'string', 'category' => 'clients'];

$CFG['documents']['fieldsList']['order']['resDescription'] = ['type' => 'text', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['resComments'] = ['type' => 'text', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['statusOpName'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['statusOpDescription'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['statusFinName'] = ['type' => 'string', 'category' => 'general'];
$CFG['documents']['fieldsList']['order']['statusFinDescription'] = ['type' => 'string', 'category' => 'general'];

$CFG['documents']['fieldsList']['order']['okServicesTotalOfferDefCurr'] = ['type' => 'numeric', 'category' => 'values'];
$CFG['documents']['fieldsList']['order']['okServicesTotalOfferWorkCurr'] = ['type' => 'numeric', 'category' => 'values'];
$CFG['documents']['fieldsList']['order']['okServicesTotalOfferBulk'] = ['type' => 'string', 'category' => 'values'];

$CFG['documents']['fieldsList']['order']['respUserName'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserLastName'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserFirstName'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserIdSeries'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserIdNumber'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserIdReleaseBy'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserIdReleaseDateIso'] = ['type' => 'date', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserIdReleaseDateStandard'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserPNC'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserJob'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserEmail'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserEmailAlternative'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserTelephone'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserFax'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserDeptName'] = ['type' => 'string', 'category' => 'respUser'];
$CFG['documents']['fieldsList']['order']['respUserDeptCode'] = ['type' => 'string', 'category' => 'respUser'];

$CFG['documents']['fieldsList']['order']['respOffName'] = ['type' => 'string', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffIataCode'] = ['type' => 'string', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffAddress'] = ['type' => 'text', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffDeliveryAddress'] = ['type' => 'text', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffZipCode'] = ['type' => 'text', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffCountry'] = ['type' => 'string', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffCity'] = ['type' => 'string', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffTelephone'] = ['type' => 'string', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffFax'] = ['type' => 'string', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffEmail'] = ['type' => 'string', 'category' => 'respOffice'];
$CFG['documents']['fieldsList']['order']['respOffWeb'] = ['type' => 'string', 'category' => 'respOffice'];

$CFG['documents']['fieldsList']['order']['addUserName'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserLastName'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserFirstName'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserIdSeries'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserIdNumber'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserIdReleaseBy'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserIdReleaseDateIso'] = ['type' => 'date', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserIdReleaseDateStandard'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserPNC'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserJob'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserEmail'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserEmailAlternative'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserTelephone'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserFax'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserDeptName'] = ['type' => 'string', 'category' => 'addUser'];
$CFG['documents']['fieldsList']['order']['addUserDeptCode'] = ['type' => 'string', 'category' => 'addUser'];

$CFG['documents']['fieldsList']['order']['compName'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compFiscalCode'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compRegNo'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compRegistryAddress'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compLiablePerson'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compTravelLicenseNo'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compRegCapital'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compTelephone'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compEmail'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compFax'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compBankMainAccAccount'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compBankMainAccBankName'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compBankMainAccBankCode'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compBankMainAccCurrency'] = ['type' => 'string', 'category' => 'company'];
$CFG['documents']['fieldsList']['order']['compBankMainAccSwiftCode'] = ['type' => 'string', 'category' => 'company'];

$CFG['documents']['fieldsList']['order']['currUserId']=['type'=>'numeric', 'category'=>'currUser'];
$CFG['documents']['fieldsList']['order']['currUserName'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserLastName'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserFirstName'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserIdSeries'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserIdNumber'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserIdReleaseBy'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserIdReleaseDateIso'] = ['type' => 'date', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserIdReleaseDateStandard'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserPNC'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserJob'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserEmail'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserEmailAlternative'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserTelephone'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserFax'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserDeptName'] = ['type' => 'string', 'category' => 'currUser'];
$CFG['documents']['fieldsList']['order']['currUserDeptCode'] = ['type' => 'string', 'category' => 'currUser'];

$CFG['documents']['fieldsList']['order']['currOffName'] = ['type' => 'string', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffIataCode'] = ['type' => 'string', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffAddress'] = ['type' => 'text', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffDeliveryAddress'] = ['type' => 'text', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffZipCode'] = ['type' => 'text', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffCountry'] = ['type' => 'string', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffCity'] = ['type' => 'string', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffTelephone'] = ['type' => 'string', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffFax'] = ['type' => 'string', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffEmail'] = ['type' => 'string', 'category' => 'currOffice'];
$CFG['documents']['fieldsList']['order']['currOffWeb'] = ['type' => 'string', 'category' => 'currOffice'];

$CFG['documents']['fieldsList']['order']['mainOffName'] = ['type' => 'string', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffIataCode'] = ['type' => 'string', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffAddress'] = ['type' => 'text', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffDeliveryAddress'] = ['type' => 'text', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffZipCode'] = ['type' => 'text', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffCountry'] = ['type' => 'string', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffCity'] = ['type' => 'string', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffTelephone'] = ['type' => 'string', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffFax'] = ['type' => 'string', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffEmail'] = ['type' => 'string', 'category' => 'mainOffice'];
$CFG['documents']['fieldsList']['order']['mainOffWeb'] = ['type' => 'string', 'category' => 'mainOffice'];

$CFG['documents']['fieldsList']['order']['dateTimeTodayIso'] = ['type' => 'date', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeTodayStandard'] = ['type' => 'string', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeTodayYear'] = ['type' => 'numeric', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeTodayMonth'] = ['type' => 'numeric', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeTodayMonthNameLong'] = ['type' => 'string', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeTodayMonthNameShort'] = ['type' => 'string', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeTodayDay'] = ['type' => 'numeric', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeTimestamp'] = ['type' => 'numeric', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeHourMin'] = ['type' => 'string', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeHourMinSec'] = ['type' => 'string', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeWeekDayShort'] = ['type' => 'string', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeWeekDayLong'] = ['type' => 'string', 'category' => 'dateTime'];
$CFG['documents']['fieldsList']['order']['dateTimeWeekNumber'] = ['type' => 'numeric', 'category' => 'dateTime'];


///////////////////////////////////////////////////////////////////////////////////////////////////
// ORDER CUSTOM FIELDS LIST ///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['documents']['customFieldsList']['order'] = [
	'customText01',
	'customText02',
	'customText03',
	'customText04',
	'customText05',
	'customText06',
	'customText07',
	'customText08',
	'customText09',
	'customText10',
	'customText11',
	'customText12',
	'customText13',
	'customText14',
	'customText15',
	'customText16',
	'customText17',
	'customText18',
	'customText19',
	'customText20',
];



?>