Skip to content

Commit

Permalink
Merge pull request #5314 from fmarcet/peru
Browse files Browse the repository at this point in the history
Fix: Missing userid on query
  • Loading branch information
eldy committed Jun 6, 2016
2 parents 2935342 + 68fa27e commit 4416925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/resultat/clientfourn.php
Expand Up @@ -629,7 +629,7 @@
{
$langs->load('trips');
if ($modecompta == 'CREANCES-DETTES') {
$sql = "SELECT p.rowid, p.ref, u.firstname, u.lastname, date_format(date_valid,'%Y-%m') as dm, sum(p.total_ht) as amount_ht,sum(p.total_ttc) as amount_ttc";
$sql = "SELECT p.rowid, p.ref, u.rowid as userid, u.firstname, u.lastname, date_format(date_valid,'%Y-%m') as dm, sum(p.total_ht) as amount_ht,sum(p.total_ttc) as amount_ttc";
$sql.= " FROM ".MAIN_DB_PREFIX."expensereport as p";
$sql.= " INNER JOIN ".MAIN_DB_PREFIX."user as u ON u.rowid=p.fk_user_author";
$sql.= " WHERE p.entity = ".getEntity('expensereport',1);
Expand Down

0 comments on commit 4416925

Please sign in to comment.