diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 2fc580b31fb..4af9d4de2af 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -966,7 +966,7 @@ else print ''; print ''; print ''; - print $html->select_tva("tva_tx"); + print $html->select_tva("tva_tx",$conf->defaulttx); print ''; print ''; print ' %'; diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index abe475be531..43f7c389eb9 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -241,6 +241,13 @@ if ($user->limite_liste > 0) $conf->liste_limit = $user->limite_liste; } +if (defined("FACTURE_TVAOPTION") && FACTURE_TVAOPTION == 'franchise') { + $conf->defaulttx='0'; # Taux par défaut des factures clients +} +else { + $conf->defaulttx=''; # Pas de taux par défaut des factures clients, le premier sera pris +} + if (defined("MAIN_THEME")) { $conf->theme=MAIN_THEME;