Ajout services
This commit is contained in:
parent
3526f07e8c
commit
a1e8edb6e7
@ -33,14 +33,14 @@ $mesg = '';
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$sql = "SELECT count(*) FROM llx_product";
|
$sql = "SELECT count(*) FROM llx_product WHERE fk_product_type = 0";
|
||||||
if ($db->query($sql))
|
if ($db->query($sql))
|
||||||
{
|
{
|
||||||
$row = $db->fetch_row(0);
|
$row = $db->fetch_row(0);
|
||||||
$nbproduct = $row[0];
|
$nbproduct = $row[0];
|
||||||
}
|
}
|
||||||
$db->free();
|
$db->free();
|
||||||
$sql = "SELECT count(*) FROM llx_product WHERE envente = 0";
|
$sql = "SELECT count(*) FROM llx_product WHERE envente = 0 AND fk_product_type = 0";
|
||||||
if ($db->query($sql))
|
if ($db->query($sql))
|
||||||
{
|
{
|
||||||
$row = $db->fetch_row(0);
|
$row = $db->fetch_row(0);
|
||||||
@ -48,7 +48,7 @@ if ($db->query($sql))
|
|||||||
}
|
}
|
||||||
$db->free();
|
$db->free();
|
||||||
|
|
||||||
print_fiche_titre('Statistiques produit', $mesg);
|
print_fiche_titre('Statistiques produits et services', $mesg);
|
||||||
|
|
||||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
@ -57,6 +57,29 @@ print '<td>'.$nbproduct.'</td></tr>';
|
|||||||
print "<tr>";
|
print "<tr>";
|
||||||
print '<td width="40%">Nb de produit dans le catalogue qui ne sont pas en vente</td>';
|
print '<td width="40%">Nb de produit dans le catalogue qui ne sont pas en vente</td>';
|
||||||
print '<td>'.$nbhv.'</td></tr>';
|
print '<td>'.$nbhv.'</td></tr>';
|
||||||
|
|
||||||
|
$sql = "SELECT count(*) FROM llx_product WHERE fk_product_type = 1";
|
||||||
|
if ($db->query($sql))
|
||||||
|
{
|
||||||
|
$row = $db->fetch_row(0);
|
||||||
|
$nbproduct = $row[0];
|
||||||
|
}
|
||||||
|
$db->free();
|
||||||
|
$sql = "SELECT count(*) FROM llx_product WHERE envente = 0 AND fk_product_type = 1";
|
||||||
|
if ($db->query($sql))
|
||||||
|
{
|
||||||
|
$row = $db->fetch_row(0);
|
||||||
|
$nbhv = $row[0];
|
||||||
|
}
|
||||||
|
$db->free();
|
||||||
|
|
||||||
|
print "<tr>";
|
||||||
|
print '<td width="40%">Nb de service dans le catalogue</td>';
|
||||||
|
print '<td>'.$nbproduct.'</td></tr>';
|
||||||
|
print "<tr>";
|
||||||
|
print '<td width="40%">Nb de service dans le catalogue qui ne sont pas en vente</td>';
|
||||||
|
print '<td>'.$nbhv.'</td></tr>';
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user