Modification des onglets on n'affiche pas l'onglet de facture pour une

ligne qui n'a pas encore t commande ;-)
This commit is contained in:
Rodolphe Quiedeville 2005-01-26 17:58:30 +00:00
parent 677b8634b3
commit 4bc47eea9e

View File

@ -503,9 +503,18 @@ else
$hselected = $h;
$h++;
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
$head[$h][1] = $langs->trans('Factures');
$h++;
if ($ligne->statut == -1)
{
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/commande.php?id=".$ligne->id;
$head[$h][1] = $langs->trans('Commande');
$h++;
}
else
{
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
$head[$h][1] = $langs->trans('Factures');
$h++;
}
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/infoc.php?id=".$ligne->id;
$head[$h][1] = $langs->trans('Infos');