Fix: do not update price with special product 9

This commit is contained in:
Regis Houssin
2011-04-10 18:44:58 +00:00
parent a3eebde120
commit fba4111f44
5 changed files with 15 additions and 14 deletions

View File

@@ -1271,7 +1271,7 @@ class Commande extends CommonObject
$result=$line->insert();
if ($result > 0)
{
$result=$this->update_price();
$result=$this->update_price(1);
if ($result > 0)
{
$this->db->commit();
@@ -1610,7 +1610,7 @@ class Commande extends CommonObject
if ($this->db->query($sql))
{
$this->remise_percent = $remise;
$this->update_price();
$this->update_price(1);
return 1;
}
else
@@ -1645,7 +1645,7 @@ class Commande extends CommonObject
if ($this->db->query($sql))
{
$this->remise_absolue = $remise;
$this->update_price();
$this->update_price(1);
return 1;
}
else