30,909
edits
m (→For Spain) Tag: 2017 source edit |
m (→For Tunisia) Tag: 2017 source edit |
||
| Line 183: | Line 183: | ||
Value of rates are found into the dictionary table from the standard vat rate (Table llx_c_tva). Total with tax and total amount of vat is modified according to calculation. | Value of rates are found into the dictionary table from the standard vat rate (Table llx_c_tva). Total with tax and total amount of vat is modified according to calculation. | ||
Because VAT in Dolibarr is calculated before adding the second TAX and for FODEC we need to add the second Tax before calculating VAT, | |||
Because VAT in Dolibarr is calculated before adding the second TAX and for FODEC we need to add the second Tax before calculating VAT, we must use a workaround to support the FODEC currently in Dolibarr. | |||
The solution is to create a VAT Rate that include bot the VAT rate + a delta to include the VAT based on FODEC. | |||
Exemple: Imagine the VAT is 18% and the FODEC is 1% | |||