Skip to content
Snippets Groups Projects
Commit 34b42d59 authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #6008 from defrance/patch-44

if supplier have multiple price return it several times
parents e6a02791 8a37db3f
Branches
Tags
No related merge requests found
...@@ -2794,7 +2794,7 @@ class Product extends CommonObject ...@@ -2794,7 +2794,7 @@ class Product extends CommonObject
$list = array(); $list = array();
$sql = "SELECT p.fk_soc"; $sql = "SELECT DISTINCT p.fk_soc";
$sql.= " FROM ".MAIN_DB_PREFIX."product_fournisseur_price as p"; $sql.= " FROM ".MAIN_DB_PREFIX."product_fournisseur_price as p";
$sql.= " WHERE p.fk_product = ".$this->id; $sql.= " WHERE p.fk_product = ".$this->id;
$sql.= " AND p.entity = ".$conf->entity; $sql.= " AND p.entity = ".$conf->entity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment