Possibilit de regnrer le PDF

This commit is contained in:
Laurent Destailleur 2006-06-10 10:50:26 +00:00
parent 8e715721b0
commit f58a4901be

View File

@ -1398,7 +1398,7 @@ else
/*
* Boutons actions
*/
if ($user->societe_id == 0 && $commande->statut < 3)
if ($user->societe_id == 0)
{
print '<div class="tabsAction">';
@ -1421,13 +1421,19 @@ else
}
// Build PDF
if ($user->rights->commande->creer)
if ($user->rights->commande->creer && $commande->statut < 3)
{
print '<a class="butAction" href="fiche.php?id='.$commande->id.'&amp;action=builddoc">'.$langs->trans("BuildPDF").'</a>';
}
// reBuild PDF
if ($user->rights->commande->creer && $commande->statut >= 3)
{
print '<a class="butAction" href="fiche.php?id='.$commande->id.'&amp;action=builddoc">'.$langs->trans("RebuildPDF").'</a>';
}
// Send
if ($commande->statut == 1)
if ($commande->statut > 0)
{
if ($user->rights->commande->envoyer)
{