{assign var= »unitprice » value=100}
{assign var= »tauxtva » value=1.21}
{math equation= »x / y » x=$unitprice y=$tauxtva assign= »htva »}
HTVA : {$htva|number_format:2} € <br>
calcul tva ? {math equation= »-x * (1-y) » x=$htva y=$tauxtva assign= »tva »}
Tva : {$tva|number_format:2} €</td>
TVAC : {$unitprice|number_format:2} €
A payer : {math equation= »x + y » x=$htva y=$tva}
Smarty : Calculs de la TVA
Laisser une réponse