From 43f6ddda870352d867428f86c11e256ac85c2108 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Jul 2008 17:36:18 +0000 Subject: [PATCH] Fix: Can regenerate invoice --- htdocs/fourn/commande/fiche.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index eba45e313d6..633a9faf611 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -415,6 +415,10 @@ if ($_GET["action"] == 'create') } +/* + * View + */ + llxHeader('',$langs->trans("OrderCard"),"CommandeFournisseur"); @@ -951,7 +955,7 @@ if ($id > 0) $relativepath = $comfournref.'/'.$comfournref.'.pdf'; $filedir = $conf->fournisseur->commande->dir_output . '/' . $comfournref; $urlsource=$_SERVER["PHP_SELF"]."?id=".$commande->id; - $genallowed=($commande->statut == 0 ? $user->rights->fournisseur->commande->creer : 0); + $genallowed=$user->rights->fournisseur->commande->creer; $delallowed=$user->rights->fournisseur->commande->supprimer; $somethingshown=$formfile->show_documents('commande_fournisseur',$comfournref,$filedir,$urlsource,$genallowed,$delallowed,$commande->modelpdf);