dolibarr 21.0.0-alpha
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 $account=null, $swift=null)
 Check SWIFT information for a bank account.
 
 checkIbanForAccount (Account $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
Object$objectObject related to tabs
string$numval to account statement
Returns
array Array of tabs to shoc

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

References $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
Object$objectObject related to tabs
Returns
array Array of tabs to shoc

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

References $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 of tabs to show

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

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

◆ checkBanForAccount()

checkBanForAccount ( $account)

Check account number information for a bank account.

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

Definition at line 348 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 427 of file bank.lib.php.

Referenced by checkBanForAccount().

◆ checkIbanForAccount()

checkIbanForAccount ( Account $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 305 of file bank.lib.php.

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

◆ checkSwiftForAccount()

checkSwiftForAccount ( Account $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 284 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 330 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 of tabs to shoc

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

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