<?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) //////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////
// CASHING ////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['documents']['fieldsList']['cashing']['cashId']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashObj']= ['type'=>'object', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['documentNumber']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['documentSeriesId']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['documentSeriesCode']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashSeriesId']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashSeriesCode']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashType']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashDateIso']= ['type'=>'date', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashDateStandard']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashNumber']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashValue']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashValueAbs']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashValueDefCurr']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashValueAbsDefCurr']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashValueDefCurrWithCurr']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashCurrency']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashCurrency2']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashBankName']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashBankCode']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashAccount']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashSwiftCode']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashExplanations']= ['type'=>'text', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashComments']= ['type'=>'text', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashReferCurrencyTypeName']= ['type'=>'string', 'category'=>'general']; // TODO: eliminate or replace with 'invReferCurrencyTypeName'
$CFG['documents']['fieldsList']['cashing']['cashReferCurrencyTypeRate']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashReferCurrencyTypeRateWithCurr']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['cashReferCurrency']= ['type'=>'string', 'category'=>'general'];

$CFG['documents']['fieldsList']['cashing']['cashAddUserName']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserLastName']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserFirstName']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserIdSeries']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserIdNumber']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserIdReleaseBy']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserIdReleaseDateIso']= ['type'=>'date', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserIdReleaseDateStandard']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserPNC']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserJob']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserEmail']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserTelephone']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserDeptName']= ['type'=>'string', 'category'=>'cashAddUser'];
$CFG['documents']['fieldsList']['cashing']['cashAddUserDeptCode']= ['type'=>'string', 'category'=>'cashAddUser'];

$CFG['documents']['fieldsList']['cashing']['cashIssueUserName']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserLastName']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserFirstName']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserIdSeries']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserIdNumber']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserIdReleaseBy']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserIdReleaseDateIso']= ['type'=>'date', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserIdReleaseDateStandard']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserPNC']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserJob']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserEmail']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserTelephone']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserDeptName']= ['type'=>'string', 'category'=>'cashIssueUser'];
$CFG['documents']['fieldsList']['cashing']['cashIssueUserDeptCode']= ['type'=>'string', 'category'=>'cashIssueUser'];

$CFG['documents']['fieldsList']['cashing']['invId']= ['type'=>'numeric', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invDateIso']= ['type'=>'date', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invDateStandard']= ['type'=>'string', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invNumber']= ['type'=>'numeric', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invSeriesCode']= ['type'=>'string', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invDueDateIso']= ['type'=>'date', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invDueDateStandard']= ['type'=>'string', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invFulfillmentDateIso']= ['type'=>'date', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invFulfillmentDateStandard']= ['type'=>'string', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invFormOfPayment']= ['type'=>'string', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invValue']= ['type'=>'numeric', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invVat']= ['type'=>'numeric', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invTotal']= ['type'=>'numeric', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invCurrency']= ['type'=>'string', 'category'=>'invGeneral'];
$CFG['documents']['fieldsList']['cashing']['invReferCurrencyTypeName']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['invReferCurrencyTypeRate']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['invReferCurrency']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['invServicesList']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['invOrderConvId']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['invOrderReservationNumber']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['invMiceProjects']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['cashing']['invPassengers']= ['type'=>'string', 'category'=>'general'];

$CFG['documents']['fieldsList']['cashing']['invClientCorpId']= ['type'=>'numeric', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompany']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompanyFull']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompanyPrefix']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompanySuffix']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompany2']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompanyFull2']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompanyPrefix2']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompanySuffix2']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompany_alt']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompanyFull_alt']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompany2_alt']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCompanyFull2_alt']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAlias']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpTrust']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpTelephone']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpFax']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpEmail']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpFiscalCode']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpRegNo']= ['type'=>'string', 'category'=>'invClientCorpGeneral'];

$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngName']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngLastName']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngFirstName']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngIdSeries']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngIdNumber']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngIdReleaseBy']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngIdReleaseDateIso']= ['type'=>'date', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngIdReleaseDateStandard']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngPNC']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngJob']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngEmail']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngTelephone']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngFax']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngDeptName']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpAccMngDeptCode']= ['type'=>'string', 'category'=>'invClientCorpAccMng'];

$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffName']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffCountry']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffCity']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffAddress']= ['type'=>'text', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffDeliveryAddress']= ['type'=>'text', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffZipCode']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffTelephone']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffFax']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffEmail']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffBankName']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffBankAccount']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpMainOffSwiftCode']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];

$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffName']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffCountry']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffCity']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffAddress']= ['type'=>'text', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffDeliveryAddress']= ['type'=>'text', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffZipCode']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffTelephone']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffFax']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffEmail']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffBankName']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffBankAccount']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['cashing']['invClientCorpCurrOffSwiftCode']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];

$CFG['documents']['fieldsList']['cashing']['invClientCustId']= ['type'=>'numeric', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustName']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustLastName']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustMiddleName']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustFirstName']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustName2']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustLastName2']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustMiddleName2']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustFirstName2']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustName_alt']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustLastName_alt']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustMiddleName_alt']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustFirstName_alt']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustName2_alt']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustLastName2_alt']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustMiddleName2_alt']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustFirstName2_alt']= ['type'=>'string', 'category'=>'invClientCust'];

$CFG['documents']['fieldsList']['cashing']['invClientCustTitle']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustType']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustCountry']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustCity']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustPNC']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustIdSeries']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustIdNumber']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustIdReleaseBy']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustIdReleaseDateIso']= ['type'=>'date', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustIdReleaseDateStandard']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustPassportNo']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustPassportType']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustPassportExpireDateIso']= ['type'=>'date', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustPassportExpireDateStandard']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustAddress']= ['type'=>'text', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustDeliveryAddress']= ['type'=>'text', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustZipCode']= ['type'=>'text', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustBankName']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustBankAccount']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustEmail']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustTelephone']= ['type'=>'string', 'category'=>'invClientCust'];
$CFG['documents']['fieldsList']['cashing']['invClientCustFax']= ['type'=>'string', 'category'=>'invClientCust'];

$CFG['documents']['fieldsList']['cashing']['invRespUserName']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserLastName']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserFirstName']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserIdSeries']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserIdNumber']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserIdReleaseBy']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserIdReleaseDateIso']= ['type'=>'date', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserIdReleaseDateStandard']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserPNC']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserJob']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserEmail']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserTelephone']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserDeptName']= ['type'=>'string', 'category'=>'invRespUser'];
$CFG['documents']['fieldsList']['cashing']['invRespUserDeptCode']= ['type'=>'string', 'category'=>'invRespUser'];

$CFG['documents']['fieldsList']['cashing']['invRespOffName']= ['type'=>'string', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOfficeIataCode']= ['type'=>'string', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffAddress']= ['type'=>'text', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffDeliveryAddress']= ['type'=>'text', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffZipCode']= ['type'=>'text', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffCountry']= ['type'=>'string', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffCity']= ['type'=>'string', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffTelephone']= ['type'=>'string', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffFax']= ['type'=>'string', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffEmail']= ['type'=>'string', 'category'=>'invRespOffice'];
$CFG['documents']['fieldsList']['cashing']['invRespOffWeb']= ['type'=>'string', 'category'=>'invRespOffice'];

$CFG['documents']['fieldsList']['cashing']['invAddUserName']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserLastName']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserFirstName']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserIdSeries']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserIdNumber']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserIdReleaseBy']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserIdReleaseDateIso']= ['type'=>'date', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserIdReleaseDateStandard']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserPNC']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserJob']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserEmail']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserTelephone']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserDeptName']= ['type'=>'string', 'category'=>'invAddUser'];
$CFG['documents']['fieldsList']['cashing']['invAddUserDeptCode']= ['type'=>'string', 'category'=>'invAddUser'];

$CFG['documents']['fieldsList']['cashing']['invIssueUserName']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserLastName']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserFirstName']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserIdSeries']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserIdNumber']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserIdReleaseBy']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserIdReleaseDateIso']= ['type'=>'date', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserIdReleaseDateStandard']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserPNC']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserJob']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserEmail']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserTelephone']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserDeptName']= ['type'=>'string', 'category'=>'invIssueUser'];
$CFG['documents']['fieldsList']['cashing']['invIssueUserDeptCode']= ['type'=>'string', 'category'=>'invIssueUser'];

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

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

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

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

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

$CFG['documents']['fieldsList']['cashing']['invClientGeneralId']= ['type'=>'numeric', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralType']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralName']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralName2']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralName_alt']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralName2_alt']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralIdentifier']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralAddress']= ['type'=>'text', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralCountry']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralCity']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralBank']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['cashing']['invClientGeneralBankAccount']= ['type'=>'string', 'category'=>'invClientGeneral'];


///////////////////////////////////////////////////////////////////////////////////////////////////
// CASHING CUSTOM FIELDS LIST /////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

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



///////////////////////////////////////////////////////////////////////////////////////////////////
// CASHING FORCED FIELDS //////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralId']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpId',
		'customer' => 'invClientCustId',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralName']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCompanyFull',
		'customer' => 'invClientCustName',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralName2']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCompanyFull2',
		'customer' => 'invClientCustName2',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralName_alt']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCompanyFull_alt',
		'customer' => 'invClientCustName_alt',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralName2_alt']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCompanyFull2_alt',
		'customer' => 'invClientCustName2_alt',
	],
];

$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralIdentifier']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpFiscalCode',
		'customer' => 'invClientCustPNC',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralAddress']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpMainOffAddress',
		'customer' => 'invClientCustAddress',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralCountry']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpMainOffCountry',
		'customer' => 'invClientCustCountry',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralCity']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpMainOffCity',
		'customer' => 'invClientCustCity',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralBank']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankName',
		'customer' => 'invClientCustBankName',
	],
];
$CFG['documents']['forcedFieldsList']['cashing']['invClientGeneralBankAccount']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankAccount',
		'customer' => 'invClientCustBankAccount',
	],
];
