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;