Merge pull request #6809 from Gecka-Apps/5.0

New-Caledonia uses the same bank accounts patterns than France
This commit is contained in:
Laurent Destailleur 2017-05-10 23:02:29 +02:00 committed by GitHub
commit 7ab151dc0d

View File

@ -1359,7 +1359,7 @@ class Account extends CommonObject
{
$country_code=$this->getCountryCode();
if (in_array($country_code,array('CH','FR','ES','GA','IT'))) return 1; // France, Spain, Gabon, ...
if (in_array($country_code,array('CH','FR','ES','GA','IT','NC'))) return 1; // France, Spain, Gabon, ...
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;
}