';
+ print '';
-print '';
-print '';
-
-// Show filter box
-print '';
-print '
';
+ // Show filter box
+ print '';
+ print '
';
+}
print '';
print '';
diff --git a/htdocs/commande/stats/index.php b/htdocs/commande/stats/index.php
index 6ef7e808126..722a8a3f35f 100644
--- a/htdocs/commande/stats/index.php
+++ b/htdocs/commande/stats/index.php
@@ -240,34 +240,37 @@ complete_head_from_modules($conf,$langs,$object,$head,$h,$type);
dol_fiche_head($head,'byyear',$langs->trans("Statistics"));
-print '';
-print '';
+if (empty($socid))
+{
+ print '';
+ print '';
-// Show filter box
-print '';
-print '
';
+ // Show filter box
+ print '';
+ print '
';
+}
print '';
print '';
diff --git a/htdocs/compta/facture/stats/index.php b/htdocs/compta/facture/stats/index.php
index 3b579f6e56f..510091c4832 100644
--- a/htdocs/compta/facture/stats/index.php
+++ b/htdocs/compta/facture/stats/index.php
@@ -219,34 +219,37 @@ complete_head_from_modules($conf,$langs,$object,$head,$h,$type);
dol_fiche_head($head,'byyear',$langs->trans("Statistics"));
-print '';
-print '';
+if (empty($socid))
+{
+ print '';
+ print '';
-// Show filter box
-print '';
-print '
';
+ // Show filter box
+ print '';
+ print '
';
+}
print ' |
|
|
|
|
|