diff --git a/htdocs/compta/facture/contact.php b/htdocs/compta/facture/contact.php index 84053b805dd..7721d1d3f9f 100644 --- a/htdocs/compta/facture/contact.php +++ b/htdocs/compta/facture/contact.php @@ -325,9 +325,8 @@ if ($id > 0) print ""; + print ' '; } - - print ' '; // Liste des contacts liés print ''; diff --git a/htdocs/compta/facture/info.php b/htdocs/compta/facture/info.php index a8839e36c9d..ab9a766fd34 100644 --- a/htdocs/compta/facture/info.php +++ b/htdocs/compta/facture/info.php @@ -77,8 +77,9 @@ $h++; */ $head = facture_prepare_head($fac); -$hselected = $conf->use_preview_tabs ? - (($fac->mode_reglement_code == 'PRE') ? 5: 4): 3; +$hselected = 3; +if ($conf->use_preview_tabs) $hselected++; +if ($fac->mode_reglement_code == 'PRE') $hselected++; dolibarr_fiche_head($head, $hselected, $langs->trans("Bill")." : $fac->ref"); diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php index 3dc2803cc74..35cc0243716 100644 --- a/htdocs/compta/facture/note.php +++ b/htdocs/compta/facture/note.php @@ -105,9 +105,10 @@ if ($_GET["facid"]) $h++; */ - $head = facture_prepare_head($fac); - $hselected = $conf->use_preview_tabs ? - (($fac->mode_reglement_code == 'PRE') ? 4: 3): 2; + $head = facture_prepare_head($fac); + $hselected = 2; + if ($conf->use_preview_tabs) $hselected++; + if ($fac->mode_reglement_code == 'PRE') $hselected++; dolibarr_fiche_head($head, $hselected, $langs->trans("Bill")." : $fac->ref"); diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index ea6a101f094..72eb81cc951 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -113,6 +113,10 @@ if ($_GET["facid"] > 0) $head[$h][1] = $langs->trans("CardBill"); $h++; + $head[$h][0] = DOL_URL_ROOT.'/compta/facture/contact.php?facid='.$fac->id; + $head[$h][1] = $langs->trans('Contact'); + $h++; + if ($conf->use_preview_tabs) { $head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$fac->id;