Fix form of bank info for CH
This commit is contained in:
parent
f142238817
commit
5ce26bae1b
@ -1429,7 +1429,7 @@ class Account extends CommonObject
|
|||||||
{
|
{
|
||||||
$country_code=$this->getCountryCode();
|
$country_code=$this->getCountryCode();
|
||||||
|
|
||||||
if (in_array($country_code,array('CH','FR','ES','GA','IT','NC'))) return 1; // France, Spain, Gabon, ...
|
if (in_array($country_code,array('FR','ES','GA','IT','NC'))) return 1; // France, Spain, Gabon, ... - Not valid for CH
|
||||||
if (in_array($country_code,array('AU','BE','CA','DE','DK','GR','GB','ID','IE','IR','KR','NL','NZ','UK','US'))) return 2; // Australia, England...
|
if (in_array($country_code,array('AU','BE','CA','DE','DK','GR','GB','ID','IE','IR','KR','NL','NZ','UK','US'))) return 2; // Australia, England...
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -727,7 +727,7 @@ function pdf_bank(&$pdf,$outputlangs,$curx,$cury,$account,$onlynumber=0,$default
|
|||||||
$cury+=3;
|
$cury+=3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($conf->global->PDF_BANK_HIDE_NUMBER_SHOW_ONLY_BICIBAN)) // Note that some countries still need bank number, BIC/IBAN not enought for them
|
if (empty($conf->global->PDF_BANK_HIDE_NUMBER_SHOW_ONLY_BICIBAN)) // Note that some countries still need bank number, BIC/IBAN not enougth for them
|
||||||
{
|
{
|
||||||
// Note:
|
// Note:
|
||||||
// bank = code_banque (FR), sort code (GB, IR. Example: 12-34-56)
|
// bank = code_banque (FR), sort code (GB, IR. Example: 12-34-56)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user