Merge pull request #6008 from defrance/patch-44

if supplier have multiple price return it several times
This commit is contained in:
Laurent Destailleur 2016-11-19 21:08:59 +01:00 committed by GitHub
commit 34b42d5913

View File

@ -2794,7 +2794,7 @@ class Product extends CommonObject
$list = array();
$sql = "SELECT p.fk_soc";
$sql = "SELECT DISTINCT p.fk_soc";
$sql.= " FROM ".MAIN_DB_PREFIX."product_fournisseur_price as p";
$sql.= " WHERE p.fk_product = ".$this->id;
$sql.= " AND p.entity = ".$conf->entity;