Skip to content

Commit

Permalink
Start to work on sepa mandate generation
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 18, 2016
1 parent c4626b0 commit 95f2cae
Show file tree
Hide file tree
Showing 5 changed files with 608 additions and 36 deletions.
2 changes: 0 additions & 2 deletions htdocs/compta/bank/class/account.class.php
Expand Up @@ -1259,8 +1259,6 @@ function getCountryCode()
// For backward compatibility, we try to guess country from other information
if (! empty($this->iban))
{
if ($mysoc->country_code === 'IN') return $mysoc->country_code; // Test to know if we can trust IBAN

// If IBAN defined, we can know country of account from it
if (preg_match("/^([a-zA-Z][a-zA-Z])/i",$this->iban,$reg)) return $reg[1];
}
Expand Down

0 comments on commit 95f2cae

Please sign in to comment.