ajout possibilite d'diter une commande valide

This commit is contained in:
Regis Houssin 2006-04-29 13:40:14 +00:00
parent f29b664171
commit 7bbd16724e

View File

@ -935,7 +935,7 @@ else
print '<td align="right">'.price($objp->subprice*$objp->qty*(100-$objp->remise_percent)/100).'</td>';
// Icone d'edition et suppression
if ($commande->statut == 0 && $user->rights->commande->creer && $_GET['action'] == '')
if ($commande->statut == 0 && $user->rights->commande->creer && $_GET['action'] == '' || $_GET['action'] == 'modif')
{
print '<td align="right"><a href="fiche.php?id='.$id.'&amp;action=editline&amp;rowid='.$objp->rowid.'">';
print img_edit();
@ -998,7 +998,7 @@ else
/*
* Ajouter une ligne
*/
if ($commande->statut == 0 && $user->rights->commande->creer && ($_GET['action'] == '' || $_GET['action'] == 'builddoc'))
if ($commande->statut == 0 && $user->rights->commande->creer && ($_GET['action'] == '' || $_GET['action'] == 'builddoc' || $_GET['action'] == 'modif'))
{
print '<tr class="liste_titre">';
print '<td>'.$langs->trans('Description').'</td>';