Skip to content

Commit

Permalink
FIX: select pexpense detail a single time
Browse files Browse the repository at this point in the history
  • Loading branch information
ymollard committed Oct 19, 2024
1 parent 4b968c3 commit 30dddab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/resultat/projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@

$column = 'e.date_valid';
} else {
$sql = "SELECT ed.rowid as rowid, ed.fk_projet, p.rowid as project_rowid, p.ref as project_name, sum(pe.amount) as amount_ht, sum(pe.amount) as amount_ttc";
$sql = "SELECT ed.rowid as rowid, ed.fk_projet, p.rowid as project_rowid, p.ref as project_name, sum(DISTINCT pe.amount) as amount_ht, sum(DISTINCT pe.amount) as amount_ttc";
$sql .= " FROM ".MAIN_DB_PREFIX."expensereport_det as ed";
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."expensereport as e ON ed.fk_expensereport = e.rowid";
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."payment_expensereport as pe ON pe.fk_expensereport = e.rowid";
Expand Down

0 comments on commit 30dddab

Please sign in to comment.