dolibarr  7.0.0-beta
Functions
accounting.lib.php File Reference

Library of accountancy functions. More...

Go to the source code of this file.

Functions

 accounting_prepare_head (AccountingAccount $object)
 Prepare array with list of tabs. More...
 
 clean_account ($account)
 Return accounting account without zero on the right. More...
 
 length_accountg ($account)
 Return General accounting account with defined length (used for product and miscellaneous) More...
 
 length_accounta ($accounta)
 Return Auxiliary accounting account of thirdparties with defined length. More...
 
 journalHead ($nom, $variante, $period, $periodlink, $description, $builddate, $exportlink='', $moreparam=array(), $calcmode='', $varlink='')
 Show header of a VAT report. More...
 

Detailed Description

Library of accountancy functions.

Definition in file accounting.lib.php.

Function Documentation

accounting_prepare_head ( AccountingAccount  $object)

Prepare array with list of tabs.

Parameters
AccountingAccount$objectAccounting account
Returns
array Array of tabs to show

Definition at line 32 of file accounting.lib.php.

References complete_head_from_modules().

clean_account (   $account)

Return accounting account without zero on the right.

Parameters
string$accountAccounting account
Returns
string String without zero on the right

Definition at line 61 of file accounting.lib.php.

journalHead (   $nom,
  $variante,
  $period,
  $periodlink,
  $description,
  $builddate,
  $exportlink = '',
  $moreparam = array(),
  $calcmode = '',
  $varlink = '' 
)

Show header of a VAT report.

Parameters
string$nomName of report
string$varianteLink for alternate report
string$periodPeriod of report
string$periodlinkLink to switch period
string$descriptionDescription
timestamp | integer$builddateDate generation
string$exportlinkLink for export or ''
array$moreparamArray with list of params to add into form
string$calcmodeCalculation mode
string$varlinkAdd a variable into the address of the page
Returns
void

Definition at line 155 of file accounting.lib.php.

References dol_fiche_end(), dol_fiche_head(), and print.

length_accounta (   $accounta)

Return Auxiliary accounting account of thirdparties with defined length.

Parameters
string$accountaAuxiliary accounting account
Returns
string String with defined length

Definition at line 109 of file accounting.lib.php.

Referenced by AccountancyExport\exportAgiris(), AccountancyExport\exportBob50(), AccountancyExport\exportCegid(), AccountancyExport\exportConfigurable(), and AccountancyExport\exportNormal().

length_accountg (   $account)