diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 68091000c7f..a1952410dbb 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -738,15 +738,15 @@ if ($id > 0) { print ' '; } - //Todo: Modifier la classe pour utiliser le champ total_ttc + print ''.price($objp->total_ht).''; if ($commande->statut == 0 && $user->rights->fournisseur->commande->creer) { - print 'rowid.'#'.$objp->rowid.'">'; + print 'id.'#'.$objp->id.'">'; print img_edit(); print ''; - print 'rowid.'">'; + print 'id.'">'; print img_delete(); print ''; } diff --git a/htdocs/fourn/fournisseur.commande.class.php b/htdocs/fourn/fournisseur.commande.class.php index f36541d78dc..951351f1d9a 100644 --- a/htdocs/fourn/fournisseur.commande.class.php +++ b/htdocs/fourn/fournisseur.commande.class.php @@ -142,6 +142,7 @@ class CommandeFournisseur extends Commande $ligne = new CommandeFournisseurLigne($this->db); + $ligne->id = $objp->rowid; $ligne->desc = $objp->description; // Description ligne $ligne->qty = $objp->qty; $ligne->tva_tx = $objp->tva_tx;