Fix supplementaire fk_statut

This commit is contained in:
ywarnier
2007-02-28 23:24:57 +00:00
parent e7804fef1c
commit 0bd9ba5dc2
3 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ function get_ca ($db, $year, $socid)
{
$sql = "SELECT sum(f.amount) as sum FROM ".MAIN_DB_PREFIX."facture as f";
$sql .= " WHERE f.fk_statut = 1";
$sql .= " WHERE f.fk_statut in (1,2)";
if ($conf->compta->mode != 'CREANCES-DETTES') {
$sql .= " AND f.paye = 1";
}