diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php
index a625ef68264..a244b9245f6 100644
--- a/htdocs/fourn/facture/fiche.php
+++ b/htdocs/fourn/facture/fiche.php
@@ -203,6 +203,18 @@ if ($_GET['action'] == 'del_ligne')
$_GET['action'] = 'edit';
}
+// Modification d'une ligne
+if ($_GET['action'] == 'mod_ligne')
+{
+ if ($_GET['etat'] == '1' && !$_GET['cancel']) // si on valide la modification
+ {
+ $facfou = new FactureFournisseur($db,'',$_GET['facid']);
+
+ $facfou->updateline($_GET['ligne_id'], $_POST['label'], $_POST['puht'], $_POST['tauxtva'], $_POST['qty']);
+ }
+ $_GET['action'] = 'edit';
+}
+
if ($_GET['action'] == 'add_ligne')
{
$facfou = new FactureFournisseur($db, '', $_GET['facid']);
@@ -425,7 +437,6 @@ else
print '
';
$var=true;
- print '