<?php

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

// bank account
$CFG['globalEntity']['::AgencyBankAccount']['account']['mandatory']=true;
$CFG['globalEntity']['::AgencyBankAccount']['account']['invisible']=false;
$CFG['globalEntity']['::AgencyBankAccount']['account']['validation']= ['maxLength'=>200];

// bank id
$CFG['globalEntity']['::AgencyBankAccount']['idBank']['mandatory']=true;
$CFG['globalEntity']['::AgencyBankAccount']['idBank']['invisible']=false;
$CFG['globalEntity']['::AgencyBankAccount']['idBank']['validation']= ['type'=>'int', 'minValue'=>1];

// bank office id
$CFG['globalEntity']['::AgencyBankAccount']['idBankOffice']['mandatory']=false;
$CFG['globalEntity']['::AgencyBankAccount']['idBankOffice']['invisible']=false;
$CFG['globalEntity']['::AgencyBankAccount']['idBankOffice']['validation']= ['type'=>'int', 'minValue'=>0];

// description
$CFG['globalEntity']['::AgencyBankAccount']['description']['mandatory']=false;
$CFG['globalEntity']['::AgencyBankAccount']['description']['invisible']=false;
$CFG['globalEntity']['::AgencyBankAccount']['description']['validation']= ['maxLength' => 100];


// currency
$CFG['globalEntity']['::AgencyBankAccount']['currency']['mandatory']=false;
$CFG['globalEntity']['::AgencyBankAccount']['currency']['invisible']=false;
$CFG['globalEntity']['::AgencyBankAccount']['currency']['validation']= ['fixLength'=>3];


