diff --git a/htdocs/core/lib/product.lib.php b/htdocs/core/lib/product.lib.php
index a6ee33e9a65..0615ff127b0 100644
--- a/htdocs/core/lib/product.lib.php
+++ b/htdocs/core/lib/product.lib.php
@@ -353,6 +353,24 @@ function show_stats_for_company($product, $socid)
print '
| ';
- print ''.img_object('', 'bill').' '.$langs->trans("SuppliersInvoices").'';
+ print ''.img_object('', 'supplier_invoice').' '.$langs->trans("SuppliersInvoices").'';
print ' | ';
print $product->stats_facture_fournisseur['suppliers'];
print ' | ';
diff --git a/htdocs/product/stats/commande.php b/htdocs/product/stats/commande.php
index 71c1b0f1ef7..9898c13f21b 100644
--- a/htdocs/product/stats/commande.php
+++ b/htdocs/product/stats/commande.php
@@ -164,26 +164,22 @@ if ($id > 0 || !empty($ref))
{
$num = $db->num_rows($result);
- if (!empty($id))
- $option .= '&id='.$product->id;
- if (!empty($search_month))
- $option .= '&search_month='.$search_month;
- if (!empty($search_year))
- $option .= '&search_year='.$search_year;
- if ($limit > 0 && $limit != $conf->liste_limit) $option .= '&limit='.urlencode($limit);
+ if ($limit > 0 && $limit != $conf->liste_limit) $option .= '&limit='.urlencode($limit);
+ if (!empty($id)) $option .= '&id='.$product->id;
+ if (!empty($search_month)) $option .= '&search_month='.urlencode($search_month);
+ if (!empty($search_year)) $option .= '&search_year='.urlencode($search_year);
print ' |