diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php
index 739972f2852..542587608da 100644
--- a/htdocs/admin/facture.php
+++ b/htdocs/admin/facture.php
@@ -36,6 +36,7 @@ $facture_addon_var = FACTURE_ADDON;
$facture_addon_var_pdf = FACTURE_ADDON_PDF;
$facture_rib_number_var = FACTURE_RIB_NUMBER;
$facture_chq_number_var = FACTURE_CHQ_NUMBER;
+$facture_tva_option = FACTURE_TVAOPTION;
if ($action == 'set')
{
@@ -82,16 +83,29 @@ if ($action == 'setpdf')
}
}
+if ($action == 'settvaoption')
+{
+ $sql = "REPLACE INTO ".MAIN_DB_PREFIX."const SET name = 'FACTURE_TVAOPTION', value='".$optiontva."', visible=0, type='chaine'";
+
+ if ($db->query($sql))
+ {
+ // la constante qui a été lue en avant du nouveau set
+ // on passe donc par une variable pour avoir un affichage cohérent
+ $facture_tva_option = $optiontva;
+ }
+}
+
+
$dir = "../includes/modules/facture/";
print_titre("Module de numérotation");
-print '
';
+print '
';
print '
';
print '
Nom
';
print '
Info
';
-print '
Activé
';
-print '
';
+print '
Activé
';
+print '
';
print "
\n";
clearstatcache();
@@ -115,17 +129,16 @@ while (($file = readdir($handle))!==false)
if ($facture_addon_var == "$file")
{
print '';
+ print '