Skip to content
Snippets Groups Projects
Commit c0bb1f72 authored by Regis Houssin's avatar Regis Houssin
Browse files

Ajout onglet aperçu sur la fiche commande client

parent 9219b594
Branches main
No related tags found
No related merge requests found
...@@ -43,7 +43,11 @@ $user->getrights('expedition'); ...@@ -43,7 +43,11 @@ $user->getrights('expedition');
if (!$user->rights->commande->lire) accessforbidden(); if (!$user->rights->commande->lire) accessforbidden();
if ($conf->projet->enabled)
{
require_once(DOL_DOCUMENT_ROOT.'/project.class.php'); require_once(DOL_DOCUMENT_ROOT.'/project.class.php');
}
require_once(DOL_DOCUMENT_ROOT.'/propal.class.php'); require_once(DOL_DOCUMENT_ROOT.'/propal.class.php');
require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php');
...@@ -469,6 +473,14 @@ else ...@@ -469,6 +473,14 @@ else
$h++; $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][0] = DOL_URL_ROOT.'/commande/info.php?id='.$commande->id;
$head[$h][1] = $langs->trans('Info'); $head[$h][1] = $langs->trans('Info');
$h++; $h++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment