This commit is contained in:
Regis Houssin
2006-06-26 17:17:53 +00:00
parent 79e3a3728f
commit cc9b9af44f

View File

@@ -390,6 +390,12 @@ class Commande extends CommonObject
*/
for ($i = 0 ; $i < sizeof($this->lines) ; $i++)
{
// on r<>cup<75>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,