From cb4017dcc9e9db56427347d16897600257c2deac Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 30 Mar 2007 00:33:01 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Une=20facture=20valid=E9e=20ne=20doit=20?= =?UTF-8?q?pas=20etre=20modifiable.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/facture/fiche.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index fd924b5120b..cd1e33e5393 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -685,9 +685,8 @@ else for ($i = 0 ; $i < sizeof($fac->lignes) ; $i++) { $var=!$var; - // Ligne en modification - if ($_GET['action'] == 'mod_ligne' && $_GET['etat'] == '0' && $_GET['ligne_id'] == $fac->lignes[$i]->rowid) + if ($fac->statut == 0 && $_GET['action'] == 'mod_ligne' && $_GET['etat'] == '0' && $_GET['ligne_id'] == $fac->lignes[$i]->rowid) { print '
'; print ''; @@ -737,7 +736,7 @@ else } - if ($_GET['action'] != 'mod_ligne') + if ($fac->statut == 0 && $_GET['action'] != 'mod_ligne') { /* Nouvelle ligne */ $var=!$var;