Modif du taux de tva par defaut

This commit is contained in:
Rodolphe Quiedeville 2003-10-08 22:43:59 +00:00
parent e3f50e1932
commit b090c008e2

View File

@ -56,7 +56,7 @@ class Form {
* *
* *
*/ */
Function select_tva($name='', $defaulttx = 0) Function select_tva($name='', $defaulttx = '')
{ {
if (! strlen(trim($name))) if (! strlen(trim($name)))
{ {
@ -75,6 +75,11 @@ class Form {
$txtva[2] = '0'; $txtva[2] = '0';
} }
if ($defaulttx == '')
{
$defaulttx = $txtva[0];
}
$taille = sizeof($txtva); $taille = sizeof($txtva);
print '<select name="'.$name.'">'; print '<select name="'.$name.'">';