diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index 3a7a57483c2..4c45a3f8e53 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -113,8 +113,9 @@ if ($_GET["facid"] > 0) } $head = facture_prepare_head($fac); - - dolibarr_fiche_head($head, 2, $langs->trans('Bill').' : '.$fac->ref); + $hselected = 2; + if ($conf->use_preview_tabs) $hselected++; + dolibarr_fiche_head($head, $hselected, $langs->trans('Bill').' : '.$fac->ref); /* * Facture