From 7aab52d342e0da79513aa49408f387dbd7573714 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 8 Oct 2003 14:56:20 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20lecture=20d'un=20fichier=20d'include=20?= =?UTF-8?q?pour=20TVA=20param=E9trable.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index e4890300695..ea4a049581d 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -56,16 +56,24 @@ class Form { * * */ - Function select_tva($name='', $defaulttx = 19.6) + Function select_tva($name='', $defaulttx = 0) { if (! strlen(trim($name))) { $name = "tauxtva"; } - $txtva[0] = '19.6'; - $txtva[1] = '5.5'; - $txtva[2] = '0'; + $file = DOL_DOCUMENT_ROOT . "/conf/tva.local.php"; + if (is_readable($file)) + { + include $file; + } + else + { + $txtva[0] = '19.6'; + $txtva[1] = '5.5'; + $txtva[2] = '0'; + } $taille = sizeof($txtva);