|
dolibarr 24.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_get_situation_ratio ($db, $lineid) | |
| Get the ratio for a legacy situation line, restricting previous lines and credits to its entity/cycle. | |
| 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 747 of file tax.lib.php.
References $conf, $date_start, $db, dol_get_first_day(), dol_get_last_day(), dol_print_error(), dol_syslog(), getDolGlobalInt(), getDolGlobalString(), price2num(), string, tax_get_situation_ratio(), and Facture\TYPE_SITUATION.
| 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 160 of file tax.lib.php.
References $conf, $date_start, $db, dol_get_first_day(), dol_get_last_day(), dol_print_error(), dol_syslog(), getDolGlobalInt(), getDolGlobalString(), price2num(), string, tax_get_situation_ratio(), and Facture\TYPE_SITUATION.
| tax_get_situation_ratio | ( | $db, | |
| $lineid ) |
Get the ratio for a legacy situation line, restricting previous lines and credits to its entity/cycle.
Called only for sales situation invoices with INVOICE_USE_SITUATION = 1.
Definition at line 108 of file tax.lib.php.
References $db, dol_print_error(), dol_syslog(), getEntity(), and Facture\TYPE_SITUATION.
Referenced by tax_by_rate(), and tax_by_thirdparty().
| 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 $conf, $db, $object, complete_head_from_modules(), Link\count(), dol_dir_list(), dol_sanitizeFileName(), and getDolGlobalString().