diff --git a/htdocs/core/lib/bank.lib.php b/htdocs/core/lib/bank.lib.php index 554d435c471..563f0be8665 100644 --- a/htdocs/core/lib/bank.lib.php +++ b/htdocs/core/lib/bank.lib.php @@ -277,7 +277,9 @@ function checkIbanForAccount($account) { require_once DOL_DOCUMENT_ROOT.'/includes/php-iban/oophp-iban.php'; - $iban = new IBAN($account->iban); + $ibantocheck = ($account->iban ? $account->iban : $account->iban_prefix); // iban or iban_prefix for backward compatibility + + $iban = new IBAN($ibantocheck); $check = $iban->Verify(); if ($check) { diff --git a/htdocs/langs/en_US/banks.lang b/htdocs/langs/en_US/banks.lang index 6c770163f29..f066877f676 100644 --- a/htdocs/langs/en_US/banks.lang +++ b/htdocs/langs/en_US/banks.lang @@ -32,7 +32,7 @@ RIB=Bank Account Number IBAN=IBAN number BIC=BIC/SWIFT code SwiftValid=BIC/SWIFT valid -SwiftVNotalid=BIC/SWIFT not valid +SwiftNotValid=BIC/SWIFT not valid IbanValid=BAN valid IbanNotValid=BAN not valid StandingOrders=Direct debit orders @@ -49,7 +49,6 @@ BankAccountDomiciliation=Bank address BankAccountCountry=Account country BankAccountOwner=Account owner name BankAccountOwnerAddress=Account owner address -RIBControlError=Integrity check of values failed. This means the information for this account number is not complete or is incorrect (check country, numbers and IBAN). CreateAccount=Create account NewBankAccount=New account NewFinancialAccount=New financial account diff --git a/htdocs/public/onlinesign/newonlinesign.php b/htdocs/public/onlinesign/newonlinesign.php index 66b4af425e7..14a08c675ce 100644 --- a/htdocs/public/onlinesign/newonlinesign.php +++ b/htdocs/public/onlinesign/newonlinesign.php @@ -21,6 +21,7 @@ * \file htdocs/public/onlinesign/newonlinesign.php * \ingroup core * \brief File to offer a way to make an online signature for a particular Dolibarr entity + * Example of URL: https://localhost/public/onlinesign/newonlinesign.php?ref=PR... */ if (!defined('NOLOGIN')) { @@ -352,10 +353,12 @@ if ($action == "dosign" && empty($cancel)) { print ''; print ''; print ''; + + // Add js code managed into the div #signature print '