dolibarr 18.0.6
|
( ) More...
Go to the source code of this file.
Functions | |
is_empty ($var, $allow_false=false, $allow_ws=false) | |
Check if a value is empty with some options. | |
accounting_prepare_head (AccountingAccount $object) | |
Prepare array with list of tabs. | |
clean_account ($account) | |
Return accounting account without zero on the right. | |
length_accountg ($account) | |
Return General accounting account with defined length (used for product and miscellaneous) | |
length_accounta ($accounta) | |
Return Auxiliary accounting account of thirdparties with defined length. | |
journalHead ($nom, $variante, $period, $periodlink, $description, $builddate, $exportlink='', $moreparam=array(), $calcmode='', $varlink='') | |
Show header of a page used to transfer/dispatch data in accounting. | |
getDefaultDatesForTransfer () | |
Return Default dates for transfer based on periodicity option in accountancy setup. | |
getCurrentPeriodOfFiscalYear ($db, $conf, $from_time=null) | |
Get current period of fiscal year. | |
accounting_prepare_head | ( | AccountingAccount | $object | ) |
Prepare array with list of tabs.
AccountingAccount | $object | Accounting account |
Definition at line 52 of file accounting.lib.php.
References complete_head_from_modules().
clean_account | ( | $account | ) |
Return accounting account without zero on the right.
string | $account | Accounting account |
Definition at line 81 of file accounting.lib.php.
getCurrentPeriodOfFiscalYear | ( | $db, | |
$conf, | |||
$from_time = null ) |
Get current period of fiscal year.
DoliDB | $db | Database handler |
stdClass | $conf | Config |
int | $from_time | [=null] Get current time or set time to find fiscal period |
Definition at line 343 of file accounting.lib.php.
References dol_get_last_day(), dol_getdate(), dol_mktime(), and dol_now().
Referenced by Asset\calculationDepreciation(), and Accountancy\exportData().
getDefaultDatesForTransfer | ( | ) |
Return Default dates for transfer based on periodicity option in accountancy setup.
Definition at line 273 of file accounting.lib.php.
References dol_get_last_day(), dol_mktime(), dol_now(), dol_print_date(), and getDolGlobalInt().
is_empty | ( | $var, | |
$allow_false = false, | |||
$allow_ws = false ) |
Check if a value is empty with some options.
mixed | $var | Value to test |
int | null | $allow_false | Setting this to true will make the function consider a boolean value of false as NOT empty. This parameter is false by default. |
int | null | $allow_ws | Setting this to true will make the function consider a string with nothing but white space as NOT empty. This parameter is false by default. |
Definition at line 38 of file accounting.lib.php.
Referenced by journalHead(), length_accounta(), and length_accountg().
journalHead | ( | $nom, | |
$variante, | |||
$period, | |||
$periodlink, | |||
$description, | |||
$builddate, | |||
$exportlink = '', | |||
$moreparam = array(), | |||
$calcmode = '', | |||
$varlink = '' ) |
Show header of a page used to transfer/dispatch data in accounting.
string | $nom | Name of report |
string | $variante | Link for alternate report |
string | $period | Period of report |
string | $periodlink | Link to switch period |
string | $description | Description |
integer | $builddate | Date of generation |
string | $exportlink | Link for export or '' |
array | $moreparam | Array with list of params to add into form |
string | $calcmode | Calculation mode |
string | $varlink | Add a variable into the address of the page |
Definition at line 183 of file accounting.lib.php.
References dol_get_fiche_end(), dol_get_fiche_head(), and is_empty().
length_accounta | ( | $accounta | ) |
Return Auxiliary accounting account of thirdparties with defined length.
string | $accounta | Auxiliary accounting account |
Definition at line 133 of file accounting.lib.php.
References getDolGlobalInt(), and is_empty().
Referenced by AccountancyExport\exportAgiris(), AccountancyExport\exportBob50(), AccountancyExport\exportCegid(), AccountancyExport\exportCiel(), AccountancyExport\exportCoala(), AccountancyExport\exportCogilog(), AccountancyExport\exportConfigurable(), AccountancyExport\exportFEC(), AccountancyExport\exportFEC2(), AccountancyExport\exportiSuiteExpert(), AccountancyExport\exportLDCompta(), AccountancyExport\exportLDCompta10(), AccountancyExport\exportOpenConcerto(), AccountancyExport\exportSAGE50SWISS(), AccountingJournal\getAccountingAccountInfos(), AccountingJournal\getAssetData(), and PaymentVarious\lengthAccounta().
length_accountg | ( | $account | ) |
Return General accounting account with defined length (used for product and miscellaneous)
string | $account | General accounting account |
Definition at line 94 of file accounting.lib.php.
References getDolGlobalInt(), and is_empty().
Referenced by AccountancyExport\exportAgiris(), AccountancyExport\exportBob50(), AccountancyExport\exportCegid(), AccountancyExport\exportCiel(), AccountancyExport\exportCoala(), AccountancyExport\exportCogilog(), AccountancyExport\exportConfigurable(), AccountancyExport\exportFEC(), AccountancyExport\exportFEC2(), AccountancyExport\exportGestimumV3(), AccountancyExport\exportGestimumV5(), AccountancyExport\exportiSuiteExpert(), AccountancyExport\exportLDCompta(), AccountancyExport\exportLDCompta10(), AccountancyExport\exportOpenConcerto(), AccountancyExport\exportSAGE50SWISS(), AccountingAccount\getNomUrl(), ProductFournisseur\getNomUrl(), Account\getTooltipContentArray(), Product\getTooltipContentArray(), PaymentVarious\lengthAccountg(), BookKeeping\select_account(), FormAccounting\select_account(), and AccountancyCategory\updateAccAcc().