Modif slection des factures impayes

This commit is contained in:
Rodolphe Quiedeville 2003-07-23 14:13:40 +00:00
parent abff48f796
commit 1720aefe7d

View File

@ -26,7 +26,7 @@ $info_box_head[] = array('text' => "Factures Impay
$info_box_contents = array();
$sql = "SELECT s.nom,s.idp,f.facnumber,f.amount,".$db->pdate("f.datef")." as df,f.paye,f.rowid as facid";
$sql .= " FROM llx_societe as s,llx_facture as f WHERE f.fk_soc = s.idp AND f.paye=0";
$sql .= " FROM llx_societe as s,llx_facture as f WHERE f.fk_soc = s.idp AND f.paye=0 AND fk_statut = 1";
$sql .= " ORDER BY f.datef DESC, f.facnumber DESC ";
$sql .= $db->plimit(5, 0);