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:
parent
677b8634b3
commit
4bc47eea9e
@ -503,9 +503,18 @@ else
|
|||||||
$hselected = $h;
|
$hselected = $h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
if ($ligne->statut == -1)
|
||||||
$head[$h][1] = $langs->trans('Factures');
|
{
|
||||||
$h++;
|
$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][0] = DOL_URL_ROOT."/telephonie/ligne/infoc.php?id=".$ligne->id;
|
||||||
$head[$h][1] = $langs->trans('Infos');
|
$head[$h][1] = $langs->trans('Infos');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user