Skip to content

Commit

Permalink
Fix: missing "paid" field
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jul 3, 2018
1 parent 0138b0e commit 875cee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/loan/index.php
Expand Up @@ -71,7 +71,7 @@

llxHeader();

$sql = "SELECT l.rowid, l.label, l.capital, l.datestart, l.dateend,";
$sql = "SELECT l.rowid, l.label, l.capital, l.paid, l.datestart, l.dateend,";
$sql.= " SUM(pl.amount_capital) as alreadypayed";
$sql.= " FROM ".MAIN_DB_PREFIX."loan as l LEFT JOIN ".MAIN_DB_PREFIX."payment_loan AS pl";
$sql.= " ON l.rowid = pl.fk_loan";
Expand All @@ -83,7 +83,7 @@
$filtre=str_replace(":","=",$filtre);
$sql .= " AND ".$filtre;
}
$sql.= " GROUP BY l.rowid, l.label, l.capital, l.datestart, l.dateend";
$sql.= " GROUP BY l.rowid, l.label, l.capital, l.paid, l.datestart, l.dateend";
$sql.= $db->order($sortfield,$sortorder);

$nbtotalofrecords = '';
Expand Down

0 comments on commit 875cee8

Please sign in to comment.