diff --git a/htdocs/lib/functions.inc.php3 b/htdocs/lib/functions.inc.php3 index 15bcb232dfa..0a377d27404 100644 --- a/htdocs/lib/functions.inc.php3 +++ b/htdocs/lib/functions.inc.php3 @@ -1,5 +1,5 @@ +/* Copyright (C) 2000-2003 Rodolphe Quiedeville * Copyright (C) 2003 Jean-Louis Bergamo * * This program is free software; you can redistribute it and/or modify @@ -416,8 +416,11 @@ function francs($euros) { return price($euros * 6.55957); } -function tva($euros, $taux=0.196) + +function tva($euros, $taux=19.6) { + $taux = $taux / 100 ; + return sprintf("%01.2f",($euros * $taux)); } function inctva($euros, $taux=1.196)