Skip to content

Commit

Permalink
FIX : Add comment because accoutancy cannot work with PgSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-florian committed Jun 17, 2016
1 parent d94953c commit 93417a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/accountancy/customer/index.php
Expand Up @@ -184,6 +184,8 @@
print '<td width="60" align="center">' . $langs->trans("DecemberMin") . '</td>';
print '<td width="60" align="center"><b>' . $langs->trans("Total") . '</b></td></tr>';


//TODO : Cannot work with PGSQL !, Change that with php treatment rather than big SQL query
$sql = "SELECT IF(aa.account_number IS NULL, 'Non pointe', aa.account_number) AS 'code comptable',";
$sql .= " IF(aa.label IS NULL, 'Non pointe', aa.label) AS 'Intitulé',";
$sql .= " ROUND(SUM(IF(MONTH(f.datef)=1,fd.total_ht,0)),2) AS 'Janvier',";
Expand Down

0 comments on commit 93417a0

Please sign in to comment.