Ajout le total des factures impayées
This commit is contained in:
parent
3331f4c83c
commit
8c4a02b780
@ -249,6 +249,7 @@ if ( $db->query($sql) )
|
|||||||
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">Factures impayées</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">Factures impayées</td></tr>';
|
||||||
$var = True;
|
$var = True;
|
||||||
|
$total = 0;
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object( $i);
|
$obj = $db->fetch_object( $i);
|
||||||
@ -257,8 +258,10 @@ if ( $db->query($sql) )
|
|||||||
print ' <a href="facture.php?facid='.$obj->rowid.'">'.$obj->facnumber.'</a></td>';
|
print ' <a href="facture.php?facid='.$obj->rowid.'">'.$obj->facnumber.'</a></td>';
|
||||||
print '<td><a href="fiche.php?socid='.$obj->idp.'">'.$obj->nom.'</a></td>';
|
print '<td><a href="fiche.php?socid='.$obj->idp.'">'.$obj->nom.'</a></td>';
|
||||||
print '<td align="right">'.price($obj->total_ttc).'</td></tr>';
|
print '<td align="right">'.price($obj->total_ttc).'</td></tr>';
|
||||||
|
$total += $obj->total_ttc;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
print '<tr><td colspan="3" align="right">'.price($obj->total_ttc).'</td></tr>';
|
||||||
print "</table><br>";
|
print "</table><br>";
|
||||||
}
|
}
|
||||||
$db->free();
|
$db->free();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user