Fix: affichait les stats des services lorsque le module n'était pas actif
This commit is contained in:
parent
f421ccd3a3
commit
437339c821
@ -16,6 +16,7 @@ ProductsOrServices=Products or Services
|
|||||||
ProductsAndServicesOnSell=Products and Services on sell
|
ProductsAndServicesOnSell=Products and Services on sell
|
||||||
ProductsAndServicesNotOnSell=Products and Services out of sell
|
ProductsAndServicesNotOnSell=Products and Services out of sell
|
||||||
ProductsAndServicesStatistics=Products and Services statistics
|
ProductsAndServicesStatistics=Products and Services statistics
|
||||||
|
ProductsStatistics=Products statistics
|
||||||
ProductsOnSell=Products on sell
|
ProductsOnSell=Products on sell
|
||||||
ProductsNotOnSell=Products out of sell
|
ProductsNotOnSell=Products out of sell
|
||||||
ServicesOnSell=Services on sell
|
ServicesOnSell=Services on sell
|
||||||
|
|||||||
@ -16,6 +16,7 @@ ProductsAndServices=Produits et Services
|
|||||||
ProductsAndServicesOnSell=Produits et Services en vente
|
ProductsAndServicesOnSell=Produits et Services en vente
|
||||||
ProductsAndServicesNotOnSell=Produits et Services hors vente
|
ProductsAndServicesNotOnSell=Produits et Services hors vente
|
||||||
ProductsAndServicesStatistics=Statistiques produits et services
|
ProductsAndServicesStatistics=Statistiques produits et services
|
||||||
|
ProductsStatistics=Statistiques produits
|
||||||
ProductsOnSell=Produits en vente
|
ProductsOnSell=Produits en vente
|
||||||
ProductsNotOnSell=Produits hors vente
|
ProductsNotOnSell=Produits hors vente
|
||||||
ServicesOnSell=Services en vente
|
ServicesOnSell=Services en vente
|
||||||
|
|||||||
@ -86,10 +86,7 @@ else
|
|||||||
print_fiche_titre($langs->trans("ProductsStatistics"), $mesg);
|
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%">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
@ -105,6 +102,8 @@ if ($conf->service->enabled)
|
|||||||
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>';
|
||||||
|
|
||||||
|
if ($conf->service->enabled)
|
||||||
|
{
|
||||||
$sql = "SELECT count(*)";
|
$sql = "SELECT count(*)";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."product as p";
|
$sql .= " FROM ".MAIN_DB_PREFIX."product as p";
|
||||||
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
|
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user