';
- // Reference
- print '';
- print '| '.$langs->trans("Ref").' | ';
+ // Reference
+ print ' |
';
+ print '| '.$langs->trans("Ref").' | ';
print $html->showrefnav($product,'ref');
- print ' | ';
- print '
';
+ print '';
+ print '';
- // Libelle
- print '| '.$langs->trans("Label").' | '.$product->libelle.' |
';
+ // Libelle
+ print '| '.$langs->trans("Label").' | '.$product->libelle.' |
';
- print '| '.$langs->trans("SellingPrice").' | ';
+ print ' |
| '.$langs->trans("SellingPrice").' | ';
if ($product->price_base_type == 'TTC')
{
print price($product->price_ttc).' '.$langs->trans($product->price_base_type);
@@ -101,190 +100,189 @@ if ($_GET["id"] || $_GET["ref"])
}
print ' |
';
- // Statut
- print '| '.$langs->trans("Status").' | ';
- print $product->getLibStatut(2);
- print ' |
';
+ // Statut
+ print '| '.$langs->trans("Status").' | ';
+ print $product->getLibStatut(2);
+ print ' |
';
- // Stock
- if ($product->isproduct() && $conf->stock->enabled)
- {
- print '| '.$langs->trans("Stock").' | ';
- if ($product->no_stock)
- {
- print "".$langs->trans("NoStockForThisProduct");
- }
- else
- {
- if ($product->stock_reel <= $product->seuil_stock_alerte)
- {
- print ' | '.img_warning().' '.$product->stock_reel.' Seuil : '.$product->seuil_stock_alerte;
- }
- else
- {
- print " | ".$product->stock_reel;
- }
- }
- print ' |
';
- }
- //show_stats_for_company($product,$socid);
+ // Stock
+ if ($product->isproduct() && $conf->stock->enabled)
+ {
+ print '| '.$langs->trans("Stock").' | ';
+ if ($product->no_stock)
+ {
+ print "".$langs->trans("NoStockForThisProduct");
+ }
+ else
+ {
+ if ($product->stock_reel <= $product->seuil_stock_alerte)
+ {
+ print ' | '.img_warning().' '.$product->stock_reel.' Seuil : '.$product->seuil_stock_alerte;
+ }
+ else
+ {
+ print " | ".$product->stock_reel;
+ }
+ }
+ print ' |
';
+ }
+ //show_stats_for_company($product,$socid);
- /*
- * Graphs additionels generes pas les cron
- *
- */
- $year = strftime('%Y',time());
- $file = get_exdir($product->id, 3) . "ventes-".$year."-".$product->id.".png";
+ // Graphs additionels generes pas les cron
+ $year = strftime('%Y',time());
+ $file = get_exdir($product->id, 3) . "ventes-".$year."-".$product->id.".png";
+ if (file_exists (DOL_DATA_ROOT.'/graph/product/'.$file) )
+ {
+ print '| Ventes | ';
+
+ $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_product&file='.$file;
+ print ' ';
+ $file = get_exdir($product->id, 3) . "ventes-".$product->id.".png";
+ $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_product&file='.$file;
+ print ' ';
+ print ' |
';
+ }
- if (file_exists (DOL_DATA_ROOT.'/graph/product/'.$file) )
- {
- print '| Ventes | ';
-
- $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_product&file='.$file;
- print ' ';
- $file = get_exdir($product->id, 3) . "ventes-".$product->id.".png";
- $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_product&file='.$file;
- print ' ';
- print ' |
';
- }
+ print '
';
+ print '';
- print '