dolibarr 21.0.0-beta
bank.lib.php File Reference

Ensemble de functions de base pour le module banque. More...

Go to the source code of this file.

Functions

 bank_prepare_head (Account $object)
 Prepare array with list of tabs.
 
 bank_admin_prepare_head ($object)
 Prepare array with list of tabs.
 
 account_statement_prepare_head ($object, $num)
 Prepare array with list of tabs.
 
 various_payment_prepare_head ($object)
 Prepare array with list of tabs.
 
 checkSwiftForAccount ($account=null, $swift=null)
 Check SWIFT information for a bank account.
 
 checkIbanForAccount ($account=null, $ibantocheck=null)
 Check IBAN number information for a bank account.
 
 getIbanHumanReadable (Account $account)
 Returns the iban human readable.
 
 checkBanForAccount ($account)
 Check account number information for a bank account.
 
 checkES ($IentOfi, $InumCta)
 Returns the key for Spanish Banks Accounts.
 

Detailed Description

Ensemble de functions de base pour le module banque.

Definition in file bank.lib.php.

Function Documentation

◆ account_statement_prepare_head()

account_statement_prepare_head ( $object,
$num )

Prepare array with list of tabs.

Parameters
CommonObject$objectObject related to tabs
string$numval to account statement
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 233 of file bank.lib.php.

References $conf, $object, complete_head_from_modules(), Link\count(), dol_dir_list(), and dol_sanitizeFileName().

◆ bank_admin_prepare_head()

bank_admin_prepare_head ( $object)

Prepare array with list of tabs.

Parameters
?CommonObject$objectObject related to tabs
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 171 of file bank.lib.php.

References $conf, $object, and complete_head_from_modules().

◆ bank_prepare_head()

bank_prepare_head ( Account $object)

Prepare array with list of tabs.

Parameters
Account$objectObject related to tabs
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 39 of file bank.lib.php.

References $conf, $object, complete_head_from_modules(), Link\count(), dol_dir_list(), dol_sanitizeFileName(), getDolGlobalBool(), getDolGlobalString(), and Account\TYPE_CASH.

◆ checkBanForAccount()

checkBanForAccount ( $account)

Check account number information for a bank account.

Parameters
Account | CompanyBankAccount$accountA bank account
Returns
boolean True if information are valid, false otherwise

Definition at line 385 of file bank.lib.php.

References checkES(), and dol_syslog().

◆ checkES()

checkES ( $IentOfi,
$InumCta )

Returns the key for Spanish Banks Accounts.

Parameters
string$IentOfiIentOfi
string$InumCtaInumCta
Returns
string Key

Definition at line 466 of file bank.lib.php.

Referenced by checkBanForAccount().

◆ checkIbanForAccount()

checkIbanForAccount ( $account = null,
$ibantocheck = null )

Check IBAN number information for a bank account.

Parameters
?Account$accountA bank account
?string$ibantocheckBank account number (used to get BAN, $account not used if provided)
Returns
boolean True if information are valid, false otherwise

Definition at line 342 of file bank.lib.php.

Referenced by BonPrelevement\create(), and Account\verif().

◆ checkSwiftForAccount()

checkSwiftForAccount ( $account = null,
$swift = null )

Check SWIFT information for a bank account.

Parameters
?Account$accountA bank account (used to get BIC/SWIFT)
?string$swiftSwift value (used to get BIC/SWIFT, param $account non used if provided)
Returns
boolean True if information are valid, false otherwise

Definition at line 321 of file bank.lib.php.

Referenced by BonPrelevement\create(), and Account\verif().

◆ getIbanHumanReadable()

getIbanHumanReadable ( Account $account)

Returns the iban human readable.

Parameters
Account$accountAccount object
Returns
string

Definition at line 367 of file bank.lib.php.

Referenced by Account\getTooltipContentArray().

◆ various_payment_prepare_head()

various_payment_prepare_head ( $object)

Prepare array with list of tabs.

Parameters
CommonObject$objectObject related to tabs
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 273 of file bank.lib.php.

References $conf, $object, complete_head_from_modules(), Link\count(), dol_dir_list(), and dol_sanitizeFileName().