Impression de la liste des factures impayées
This commit is contained in:
parent
cc4d7b83cc
commit
72ef227806
@ -124,10 +124,19 @@ print "<TR class=\"liste_titre\">";
|
|||||||
print '<td colspan="2">'.translate("Bills").'</td>';
|
print '<td colspan="2">'.translate("Bills").'</td>';
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
|
|
||||||
$sql = "SELECT count(*) FROM llx_facture WHERE paye = 0";
|
$sql = "SELECT facnumber, rowid FROM llx_facture WHERE paye = 0";
|
||||||
if (valeur($sql)) {
|
if ( $db->query($sql) )
|
||||||
$var=!$var;
|
{
|
||||||
print "<tr $bc[$var]><td><a href=\"facture.php3\">Non payées</a></td><td align=\"right\">".valeur($sql)."</td></tr>";
|
$num = $db->num_rows();
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
|
while ($i < $num)
|
||||||
|
{
|
||||||
|
$obj = $db->fetch_object( $i);
|
||||||
|
$var=!$var;
|
||||||
|
print '<tr '.$bc[$var].'><td><a href="facture.php3?facid='.$obj->rowid.'">'.$obj->facnumber."</td></tr>";
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</table><br>";
|
print "</table><br>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user