From c0bb1f72327f04a3c16672aa8437a5d7bd3fab71 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Wed, 8 Feb 2006 16:44:11 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20onglet=20aper=E7u=20sur=20la=20fiche=20?= =?UTF-8?q?commande=20client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/fiche.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index d17166a7856..0aefd90498c 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -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'); -- GitLab