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


///////////////////////////////////////////////////////////////////////////////////////////////////
// INVOICE ////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['documents']['fieldsList']['invoice']['invId']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invObj']= ['type'=>'object', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['documentNumber']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['documentSeriesId']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['documentSeriesCode']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invDateIso']= ['type'=>'date', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invDateStandard']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invNumber']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invSeriesId']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invSeriesCode']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invDueDateIso']= ['type'=>'date', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invDueDateStandard']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invDueDuration']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['fulfillmentDateIso']= ['type'=>'date', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['fulfillmentDateStandard']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invComments']= ['type'=>'text', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invFormOfPayment']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invValue']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invVatBase']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invVat']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invTotal']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invCurrency']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invCurrency2']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invCurrencySubdivision']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invCashedTotal']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invReferCurrencyTypeName']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invReferCurrencyTypeRate']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invReferCurrencyTypeRateAbs']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invReferCurrencyTypeRateWorkCurr']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invReferCurrency']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invCurrencyExchangeRate']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invTotalInDefaultCurrency']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invTotalInDefCurrWithCurr']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invVatInDefaultCurrency']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invVatInDefCurrWithCurr']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invValueInDefaultCurrency']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invVatQuotaFull']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invVatQuotaServices']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invVatRemarksFull']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invCreditNoteRef']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invCreditNoteRefNoSer']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invRowsCount_invoice']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invOffersEquivDetails']= ['type'=>'string', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invServicePriceTotalBase']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invServicePriceTotalVat']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invDiscountTotalBase']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invDiscountTotalVat']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invServiceFeeTotalBase']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invServiceFeeTotalVat']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invTaxTotalBase']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invTaxTotalVat']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['invPenaltiesTotal']= ['type'=>'numeric', 'category'=>'general'];
$CFG['documents']['fieldsList']['invoice']['suppliersDetails']= ['type'=>'string', 'category'=>'general'];

$CFG['documents']['fieldsList']['invoice']['idGenDoc_invoiceProforma']= ['type'=>'numeric', 'category'=>'general'];



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

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

$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffId']= ['type'=>'numeric', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffName']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffCountry']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffCity']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffAddress']= ['type'=>'text', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffDeliveryAddress']= ['type'=>'text', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffZipCode']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffTelephone']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffFax']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffEmail']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffBank']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffBankName']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffBankCode']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffBankOffName']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffBankOffAddress']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffBankOffMfo']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffBankOffSwiftCode']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpMainOffBankAccount']= ['type'=>'string', 'category'=>'invClientCorpMainOff'];

$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffId']= ['type'=>'numeric', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffName']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffCountry']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffCity']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffAddress']= ['type'=>'text', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffDeliveryAddress']= ['type'=>'text', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffZipCode']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffTelephone']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffFax']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffEmail']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffBank']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffBankName']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffBankCode']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffBankOffName']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffBankOffAddress']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffBankOffMfo']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffBankOffSwiftCode']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];
$CFG['documents']['fieldsList']['invoice']['invClientCorpCurrOffBankAccount']= ['type'=>'string', 'category'=>'invClientCorpCurrOff'];

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

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

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

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

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

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

$CFG['documents']['fieldsList']['invoice']['compName']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compName2']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compFiscalCode']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compEuVatNumber']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compRegNo']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compRegistryAddress']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compRegistryAddress2']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compLiablePerson']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compTravelLicenseNo']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compRegCapital']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compTelephone']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compEmail']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compFax']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankMainAccAccount']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankMainAccBankName']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankMainAccBankCode']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankMainAccCurrency']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankMainAccSwiftCode']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankMainAccBankAddress']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankSelAccAccount']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankSelAccBankName']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankSelAccBankCode']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankSelAccCurrency']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankSelAccSwiftCode']= ['type'=>'string', 'category'=>'company'];
$CFG['documents']['fieldsList']['invoice']['compBankSelAccBankAddress']= ['type'=>'string', 'category'=>'company'];

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

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

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

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

$CFG['documents']['fieldsList']['invoice']['invClientGeneralId']= ['type'=>'numeric', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralType']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralName']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralName2']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralName_alt']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralName2_alt']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralIdentifier']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralAddress']= ['type'=>'text', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralAddress2']= ['type'=>'text', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralZipCode']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralZipCode2']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralCountry']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralCountry2']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralCity']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralCity2']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralBank']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralBankName']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralBankCode']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralBankOffName']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralBankOffAddress']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralBankOffMfo']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralBankOffSwiftCode']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralBankAccount']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralEmail']= ['type'=>'string', 'category'=>'invClientGeneral'];
$CFG['documents']['fieldsList']['invoice']['invClientGeneralTelephone']= ['type'=>'string', 'category'=>'invClientGeneral'];

// service passengers details
$CFG['documents']['fieldsList']['invoice']['passengersPassportNumber'] = ['type'=>'string', 'category'=>'serviceDetails'];
$CFG['documents']['fieldsList']['invoice']['servicesDefinedPaxList'] = ['type'=>'string', 'category'=>'serviceDetails'];
$CFG['documents']['fieldsList']['invoice']['firstServStartDateIso'] = ['type'=>'date', 'category'=>'serviceDetails'];
$CFG['documents']['fieldsList']['invoice']['firstServStartDateStandard'] = ['type'=>'string', 'category'=>'serviceDetails'];
$CFG['documents']['fieldsList']['invoice']['lastServEndDateIso'] = ['type'=>'date', 'category'=>'serviceDetails'];
$CFG['documents']['fieldsList']['invoice']['servicesDestCntrZones'] = ['type'=>'string', 'category'=>'serviceDetails'];
$CFG['documents']['fieldsList']['invoice']['invServicesFormOfPayment'] = ['type' => 'string', 'category' => 'serviceDetails'];
$CFG['documents']['fieldsList']['invoice']['invServicesFormOfCashing'] = ['type' => 'string', 'category' => 'serviceDetails'];

$CFG['documents']['fieldsList']['invoice']['invReservationConvId'] = ['type'=>'string', 'category'=>'orderDetails'];
$CFG['documents']['fieldsList']['invoice']['invReservationNumber'] = ['type'=>'string', 'category'=>'orderDetails'];
$CFG['documents']['fieldsList']['invoice']['invReservationContactPersons'] = ['type'=>'string', 'category'=>'orderDetails'];
$CFG['documents']['fieldsList']['invoice']['invMiceProjects'] = ['type'=>'string', 'category'=>'orderDetails'];


///////////////////////////////////////////////////////////////////////////////////////////////////
// INVOICE CUSTOM FIELDS LIST /////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

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


///////////////////////////////////////////////////////////////////////////////////////////////////
// INVOICE FORCED FIELDS //////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralId']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpId',
		'customer' => 'invClientCustId',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralName']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCompanyFull',
		'customer' => 'invClientCustName',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralName2']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCompanyFull2',
		'customer' => 'invClientCustName2',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralName_alt']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCompanyFull_alt',
		'customer' => 'invClientCustName_alt',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralName2_alt']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCompanyFull2_alt',
		'customer' => 'invClientCustName2_alt',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralIdentifier']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpFiscalCode',
		'customer' => 'invClientCustPNC',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralAddress']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpMainOffAddress',
		'customer' => 'invClientCustAddress',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralAddress2']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffAddress',
		'customer' => 'invClientCustAddress',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralZipCode']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpMainOffZipCode',
		'customer' => 'invClientCustZipCode',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralZipCode2']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffZipCode',
		'customer' => 'invClientCustZipCode',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralCountry']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpMainOffCountry',
		'customer' => 'invClientCustCountry',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralCountry2']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffCountry',
		'customer' => 'invClientCustCountry',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralCity']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpMainOffCity',
		'customer' => 'invClientCustCity',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralCity2']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffCity',
		'customer' => 'invClientCustCity',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralBank']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBank',
		'customer' => 'invClientCustBank',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralBankName']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankName',
		'customer' => 'invClientCustBankName',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralBankCode']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankCode',
		'customer' => 'invClientCustBankCode',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralBankOffName']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankOffName',
		'customer' => 'invClientCustBankOffName',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralBankOffAddress']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankOffAddress',
		'customer' => 'invClientCustBankOffAddress',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralBankOffMfo']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankOffMfo',
		'customer' => 'invClientCustBankOffMfo',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralBankOffSwiftCode']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankOffSwiftCode',
		'customer' => 'invClientCustBankOffSwiftCode',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralBankAccount']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffBankAccount',
		'customer' => 'invClientCustBankAccount',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralEmail']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffEmail',
		'customer' => 'invClientCustEmail',
	],
];
$CFG['documents']['forcedFieldsList']['invoice']['invClientGeneralTelephone']= [
	'key'=>"invClientGeneralType",
	'values'=> [
		'corporate' => 'invClientCorpCurrOffTelephone',
		'customer' => 'invClientCustTelephone',
	],
];

