diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php index 271bc9abb4e..dbbb444a1f7 100644 --- a/htdocs/adherents/cotisations.php +++ b/htdocs/adherents/cotisations.php @@ -58,6 +58,9 @@ $pagenext = $page + 1; $sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, c.cotisation, ".$db->pdate("c.dateadh")." as dateadh"; $sql .= " FROM llx_adherent as d, llx_cotisation as c"; $sql .= " WHERE d.rowid = c.fk_adherent"; +if(isset($date_select) && $date_select != ''){ + $sql .= " AND dateadh LIKE '$date_select%'"; +} $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset); $result = $db->query($sql); @@ -76,6 +79,7 @@ if ($result) print "\n"; $var=True; + $total=0; while ($i < $num) { $objp = $db->fetch_object( $i); @@ -83,10 +87,31 @@ if ($result) print "
| Annee | "; + print "Montant | "; + // print "Prenom Nom / Société | "; + print "
| $key | ".price($value)." |