Merge pull request #18849 from javieralapps4up/develop

FIX: #18848 Add Andorra (AD) in the public function useDetailedBBAN () Feature request
This commit is contained in:
Laurent Destailleur 2021-09-30 13:30:02 +02:00 committed by GitHub
commit 8ab9524d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1503,7 +1503,7 @@ class Account extends CommonObject
{
$country_code = $this->getCountryCode();
if (in_array($country_code, array('FR', 'ES', 'GA', 'IT', 'NC'))) {
if (in_array($country_code, array('AD', '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'))) {