Fix: affichait les stats des services lorsque le module n'était pas actif

This commit is contained in:
Regis Houssin 2006-05-26 13:58:59 +00:00
parent 2b5a1147af
commit f421ccd3a3

View File

@ -77,7 +77,17 @@ if ($db->query($sql))
} }
$db->free(); $db->free();
if ($conf->service->enabled)
{
print_fiche_titre($langs->trans("ProductsAndServicesStatistics"), $mesg); print_fiche_titre($langs->trans("ProductsAndServicesStatistics"), $mesg);
}
else
{
print_fiche_titre($langs->trans("ProductsStatistics"), $mesg);
}
if ($conf->service->enabled)
{
print '<br>'; print '<br>';
print '<table class="noborder" width="100%">'; print '<table class="noborder" width="100%">';
@ -144,6 +154,7 @@ print '<td width="40%">Nb de service dans le catalogue qui ne sont pas en vente<
print '<td>'.$nbhv.'</td></tr>'; print '<td>'.$nbhv.'</td></tr>';
print '</table>'; print '</table>';
}
// Stats des produits en factures, propale, ... // Stats des produits en factures, propale, ...