Ajout onglet aperu sur la fiche commande client

This commit is contained in:
Regis Houssin 2006-02-08 16:44:11 +00:00
parent 9219b5941e
commit c0bb1f7232

View File

@ -43,7 +43,11 @@ $user->getrights('expedition');
if (!$user->rights->commande->lire) accessforbidden();
require_once(DOL_DOCUMENT_ROOT.'/project.class.php');
if ($conf->projet->enabled)
{
require_once(DOL_DOCUMENT_ROOT.'/project.class.php');
}
require_once(DOL_DOCUMENT_ROOT.'/propal.class.php');
require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php');
@ -468,6 +472,14 @@ else
$head[$h][1] = $langs->trans('ComptaCard');
$h++;
}
if ($conf->use_preview_tabs)
{
$head[$h][0] = DOL_URL_ROOT.'/commande/apercu.php?id='.$commande->id;
$head[$h][1] = $langs->trans("Preview");
$hselected=$h;
$h++;
}
$head[$h][0] = DOL_URL_ROOT.'/commande/info.php?id='.$commande->id;
$head[$h][1] = $langs->trans('Info');