Changes

m
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, it is not possible to support the FODEC currently in Dolibarr.
+
 
 +
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%