<?php
 $CFG['globalEntity']['::Invoice']['invoiceDate']['mandatory']=true; $CFG['globalEntity']['::Invoice']['invoiceDate']['validation']= ['type'=>'date', 'minValue'=>date(MYSQL_FORMAT, strtotime('-5 years')), 'maxValue'=>date(MYSQL_FORMAT, strtotime('+1 year'))]; $CFG['globalEntity']['::Invoice']['dueDate']['mandatory']=true; $CFG['globalEntity']['::Invoice']['dueDate']['invisible']=false; $CFG['globalEntity']['::Invoice']['dueDate']['validation']= ['type'=>'date']; $CFG['globalEntity']['::Invoice']['fulfillmentDate']['mandatory']=false; $CFG['globalEntity']['::Invoice']['fulfillmentDate']['invisible']=true; $CFG['globalEntity']['::Invoice']['fulfillmentDate']['validation']= ['type'=>'date']; $CFG['globalEntity']['::Invoice']['idBankAccount']['mandatory']=false; $CFG['globalEntity']['::Invoice']['idBankAccount']['invisible']=false; $CFG['globalEntity']['::Invoice']['idBankAccount']['validation']= ['type'=>'int']; $CFG['globalEntity']['::Invoice']['idInvoiceSeries']['mandatory']=true; $CFG['globalEntity']['::Invoice']['idInvoiceSeries']['invisible']=false; $CFG['globalEntity']['::Invoice']['idInvoiceSeries']['validation']= ['type'=>'int']; $CFG['globalEntity']['::Invoice']['comments']['mandatory']=false; $CFG['globalEntity']['::Invoice']['comments']['invisible']=false; $CFG['globalEntity']['::Invoice']['remarks']['mandatory']=false; $CFG['globalEntity']['::Invoice']['remarks']['invisible']=false; $CFG['globalEntity']['::Invoice']['currency']['mandatory']=true; $CFG['globalEntity']['::Invoice']['currency']['invisible']=false; $CFG['globalEntity']['::Invoice']['formOfPayment']['mandatory']=false; $CFG['globalEntity']['::Invoice']['formOfPayment']['invisible']=false; $CFG['globalEntity']['::Invoice']['idUser']['mandatory']=true; $CFG['globalEntity']['::Invoice']['idUser']['invisible']=false; $CFG['globalEntity']['::Invoice']['idUser']['validation']= ['type'=>'int', 'minValue'=>1]; $CFG['globalEntity']['::Invoice']['idOffice']['mandatory']=true; $CFG['globalEntity']['::Invoice']['idOffice']['invisible']=false; $CFG['globalEntity']['::Invoice']['idOffice']['validation']= ['type'=>'int', 'minValue'=>1]; $CFG['globalEntity']['::Invoice']['_special']['originalInvoiceReferenceOnCreditNoteRows']='number'; $CFG['globalEntity']['::Invoice']['_special']['voidReasons'] = ['clientReject', 'wrongData', 'wrongServices', 'issuedByMistake', 'autoVoidBySystem']; $CFG['globalEntity']['::Invoice']['_special']['voidReasonMandatory'] = false; 