dolibarr 19.0.3
|
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.
string | $type | Tax type, either 'vat', 'localtax1' or 'localtax2' |
DoliDB | $db | Database handler object |
int | $y | Year |
int | $q | Quarter |
string | $date_start | Start date |
string | $date_end | End date |
int | $modetax | Not used |
int | $direction | 'sell' (customer invoice) or 'buy' (supplier invoices) |
int | $m | Month |
Definition at line 701 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)
string | $type | Tax type, either 'vat', 'localtax1' or 'localtax2' |
DoliDB | $db | Database handle |
int | $y | Year |
string | $date_start | Start date |
string | $date_end | End date |
int | $modetax | Not used |
string | $direction | 'sell' or 'buy' |
int | $m | Month |
int | $q | Quarter |
Definition at line 112 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 38 of file tax.lib.php.
References complete_head_from_modules(), Link\count(), dol_dir_list(), dol_sanitizeFileName(), and getDolGlobalString().