From b090c008e21374257151169cbe8c2d499131f31a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 8 Oct 2003 22:43:59 +0000 Subject: [PATCH] Modif du taux de tva par defaut --- htdocs/html.form.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index ea4a049581d..50f732d3d08 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -56,7 +56,7 @@ class Form { * * */ - Function select_tva($name='', $defaulttx = 0) + Function select_tva($name='', $defaulttx = '') { if (! strlen(trim($name))) { @@ -75,6 +75,11 @@ class Form { $txtva[2] = '0'; } + if ($defaulttx == '') + { + $defaulttx = $txtva[0]; + } + $taille = sizeof($txtva); print '