Skip to content

Commit

Permalink
FIX bug margin calcul by user with multicompany
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-arnaud committed Jan 20, 2017
1 parent c953ae2 commit 2cedcfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/margin/agentMargins.php
Expand Up @@ -126,6 +126,7 @@
$sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
$sql.= ", ".MAIN_DB_PREFIX."user as u";
$sql.= " WHERE f.fk_soc = s.rowid";
$sql.= " AND f.entity = ".$conf->entity;
$sql.= " AND sc.fk_soc = f.fk_soc";
$sql.= " AND (d.product_type = 0 OR d.product_type = 1)";
if (! empty($conf->global->AGENT_CONTACT_TYPE))
Expand Down

0 comments on commit 2cedcfe

Please sign in to comment.