Skip to content

Commit

Permalink
Merge pull request #5903 from atm-gauthier/FIX_thirdparty_margin
Browse files Browse the repository at this point in the history
FIX : margin tab on customer card must filter on current entity invoices
  • Loading branch information
eldy committed Oct 24, 2016
2 parents fe71c0c + a814e02 commit e4da87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/margin/tabs/thirdpartyMargins.php
Expand Up @@ -152,7 +152,7 @@
$sql.= ", ".MAIN_DB_PREFIX."facturedet as d";
$sql.= " WHERE f.fk_soc = s.rowid";
$sql.= " AND f.fk_statut > 0";
$sql.= " AND s.entity = ".$conf->entity;
$sql.= " AND f.entity = ".$conf->entity;
$sql.= " AND d.fk_facture = f.rowid";
$sql.= " AND f.fk_soc = $socid";
$sql.= " AND d.buy_price_ht IS NOT NULL";
Expand Down

0 comments on commit e4da87d

Please sign in to comment.