From cc9b9af44f25913d6ef1c9d80f3069040eb50760 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 26 Jun 2006 17:17:53 +0000 Subject: [PATCH] Fix: bug #16942 --- htdocs/commande/commande.class.php | 6 ++++++ 1 file changed, 6 insertions(+) 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,