dolibarr 21.0.0-alpha
|
Library for tax module. More...
Go to the source code of this file.
Functions | |
tax_prepare_head (ChargeSociales $object) | |
Prepare array with list of tabs. | |
tax_by_thirdparty ($type, $db, $y, $date_start, $date_end, $modetax, $direction, $m=0, $q=0) | |
Look for collectable VAT clients in the chosen year (and month) | |
tax_by_rate ($type, $db, $y, $q, $date_start, $date_end, $modetax, $direction, $m=0) | |
Gets Tax to collect for the given year (and given quarter or month) The function gets the Tax in split results, as the Tax declaration asks to report the amounts for different Tax rates as different lines. | |
Library for tax module.
Definition in file tax.lib.php.
tax_by_rate | ( | $type, | |
$db, | |||
$y, | |||
$q, | |||
$date_start, | |||
$date_end, | |||
$modetax, | |||
$direction, | |||
$m = 0 ) |
Gets Tax to collect for the given year (and given quarter or month) The function gets the Tax in split results, as the Tax declaration asks to report the amounts for different Tax rates as different lines.
'vat'|'localtax1'|'localtax2' | $type Tax type, either 'vat', 'localtax1' or 'localtax2' | |
DoliDB | $db | Database handler object |
int | $y | Year |
int<0,4> | $q Quarter | |
int|'' | $date_start Start date | |
int|'' | $date_end End date | |
int | $modetax | Not used |
'sell'|'buy' | $direction 'sell' (customer invoice) or 'buy' (supplier invoices) | |
int<0,12> | $m Month |
Definition at line 707 of file tax.lib.php.
References dol_get_first_day(), dol_get_last_day(), dol_print_error(), dol_syslog(), and getDolGlobalString().
tax_by_thirdparty | ( | $type, | |
$db, | |||
$y, | |||
$date_start, | |||
$date_end, | |||
$modetax, | |||
$direction, | |||
$m = 0, | |||
$q = 0 ) |
Look for collectable VAT clients in the chosen year (and month)
'vat'|'localtax1'|'localtax2' | $type Tax type, either 'vat', 'localtax1' or 'localtax2' | |
DoliDB | $db | Database handle |
int | $y | Year |
int|'' | $date_start Start date | |
int|'' | $date_end End date | |
int | $modetax | Not used |
'sell'|'buy' | $direction 'sell' or 'buy' | |
int<0,12> | $m Month | |
int<0,4> | $q Quarter |
Definition at line 114 of file tax.lib.php.
References dol_get_first_day(), dol_get_last_day(), dol_print_error(), dol_syslog(), and getDolGlobalString().
tax_prepare_head | ( | ChargeSociales | $object | ) |
Prepare array with list of tabs.
ChargeSociales | $object | Object related to tabs |
Definition at line 40 of file tax.lib.php.
References $object, complete_head_from_modules(), Link\count(), dol_dir_list(), dol_sanitizeFileName(), and getDolGlobalString().