Merge pull request #18356 from altairisfr/iban

NEW: add constant MAIN_IBAN_IS_NEVER_MANDATORY
This commit is contained in:
Laurent Destailleur 2021-08-11 21:02:51 +02:00 committed by GitHub
commit 06b50051f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1519,6 +1519,10 @@ class Account extends CommonObject
*/
public function needIBAN()
{
global $conf;
if ( ! empty($conf->global->MAIN_IBAN_NOT_MANDATORY) ) return 0;
$country_code = $this->getCountryCode();
$country_code_in_EEC = array(