Hi,
I am a new-bee on dolibarr which seems a promising CRM for small businesses. I have a difficult on showing customer IBAN number on their card (Bank account numer is shown). I changed the neccessary php code to show IBAN however i noticed global contants on the php code which is not in mysql databases.
BANK_SHOW_ORDER_OPTION is for what purpose and is it used in any part of the software ?
[code]
function getRibLabel($displayriblabel = true,$displayribiban = false )
{
global $langs,$conf;
if ($this->code_banque || $this->code_guichet || $this->number || $this->cle_rib || $this->iban)
{
if ($this->label && $displayriblabel) $rib = $this->label." : ";
if($this->iban && $displayribiban) {
$rib.=$this->iban;
}
else {
// Show fields of bank account
$fieldlists='BankCode DeskCode AccountNumber BankAccountNumberKey';
if (! empty($conf->global->BANK_SHOW_ORDER_OPTION))
{
if (is_numeric($conf->global->BANK_SHOW_ORDER_OPTION))
{
if ($conf->global->BANK_SHOW_ORDER_OPTION == '1') $fieldlists='BankCode DeskCode BankAccountNumberKey AccountNumber';
}
else $fieldlists=$conf->global->BANK_SHOW_ORDER_OPTION;
}
$fieldlistsarray=explode(' ',$fieldlists);
foreach($fieldlistsarray as $val)
{
if ($val == 'BankCode')
{
if ($this->useDetailedBBAN() == 1)
{
$rib.=$this->code_banque.' ';
}
}
if ($val == 'DeskCode')
{
if ($this->useDetailedBBAN() == 1)
{
$rib.=$this->code_guichet.' ';
}
}
if ($val == 'BankCode')
{
if ($this->useDetailedBBAN() == 2)
{
$rib.=$this->code_banque.' ';
}
}
if ($val == 'AccountNumber')
{
$rib.=$this->number.' ';
}
else if($val == "IBAN")
{
$rib.=$this->iban.' ';
}
if ($val == 'BankAccountNumberKey')
{
if ($this->useDetailedBBAN() == 1)
{
$rib.=$this->cle_rib.' ';
}
}
}
}
}
else
{
$rib='';
}
return $rib;
} [/code]