diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 80e16b22b90..e2e82ae39d9 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -390,6 +390,12 @@ class Commande extends CommonObject */ for ($i = 0 ; $i < sizeof($this->lines) ; $i++) { + // on récupère le subprice de la propale + if ($this->propale_id) + { + $this->lines[$i]->price = $this->lines[$i]->subprice; + } + $resql = $this->addline( $this->id, $this->lines[$i]->libelle,