diff --git a/htdocs/product/stock/valo.php b/htdocs/product/stock/valo.php
index 90e325a1cc3..8a5f6b2cc0a 100644
--- a/htdocs/product/stock/valo.php
+++ b/htdocs/product/stock/valo.php
@@ -114,9 +114,17 @@ if ($result)
print "";
print '
';
- $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_stock&file=entrepot.png';
- print '
';
+ $year = strftime("%Y",time());
+ $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_stock&file=entrepot-'.$year.'.png';
+ print '
';
+
+ if (file_exists(DOL_DATA_ROOT.'/graph/entrepot/entrepot-'.($year-1).'.png'))
+ {
+ $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_stock&file=entrepot-'.($year-1).'.png';
+ print '
';
+ }
+
}
else
{