Modif du taux de tva par defaut
This commit is contained in:
parent
e3f50e1932
commit
b090c008e2
@ -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.'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user