Possibilité de regénérer 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 * Boutons actions
*/ */
if ($user->societe_id == 0 && $commande->statut < 3) if ($user->societe_id == 0)
{ {
print '<div class="tabsAction">'; print '<div class="tabsAction">';
@ -1421,13 +1421,19 @@ else
} }
// Build PDF // 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>'; 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 // Send
if ($commande->statut == 1) if ($commande->statut > 0)
{ {
if ($user->rights->commande->envoyer) if ($user->rights->commande->envoyer)
{ {