correct bug in price delete

This commit is contained in:
Christophe Battarel 2012-10-17 12:47:40 +02:00
parent 099bf034af
commit e8b92cc2c5

View File

@ -212,7 +212,7 @@ class ProductFournisseur extends Product
{
// Delete price for this quantity
$sql = "DELETE FROM ".MAIN_DB_PREFIX."product_fournisseur_price";
$sql.= " WHERE rowid = ".$this->product_fourn_price_id;
$sql.= " WHERE fk_soc = ".$fourn->id." AND ref_fourn = '".$this->db->escape($ref_fourn)."' AND quantity = ".$qty;
dol_syslog(get_class($this).'::update_buyprice sql='.$sql);
$resql=$this->db->query($sql);
if ($resql)