dolibarr 19.0.3
bank.lib.php File Reference

Ensemble de fonctions 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 informations for a bank account.
 
 checkIbanForAccount (Account $account=null, $ibantocheck=null)
 Check IBAN number informations for a bank account.
 
 getIbanHumanReadable (Account $account)
 Returns the iban human readable.
 
 checkBanForAccount ($account)
 Check account number informations for a bank account.
 
 checkES ($IentOfi, $InumCta)
 Returns the key for Spanish Banks Accounts.
 

Detailed Description

Ensemble de fonctions 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
Object$numval to account statement
Returns
array Array of tabs to shoc

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

References 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 132 of file bank.lib.php.

References 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 37 of file bank.lib.php.

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

◆ checkBanForAccount()

checkBanForAccount ( $account)

Check account number informations for a bank account.

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

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

Referenced by checkBanForAccount().

◆ checkIbanForAccount()

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

Check IBAN number informations 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 informations are valid, false otherwise

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

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

◆ checkSwiftForAccount()

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

Check SWIFT informations 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 informations are valid, false otherwise

Definition at line 282 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 328 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
Object$objectObject related to tabs
Returns
array Array of tabs to shoc

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

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