diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php index b9f9b788a24..a7790e6778b 100644 --- a/htdocs/fourn/product/fiche.php +++ b/htdocs/fourn/product/fiche.php @@ -371,14 +371,19 @@ else print ''.$langs->trans("Label").''.$product->libelle.''; print ''.$langs->trans("SellingPrice").''.price($product->price).''; - $nblignefour=3; + $nblignefour=2; + if ($product->type == 0 && $conf->stock->enabled) $nblignefour++; + if ($product->type == 1) $nblignefour++; - print ''; - $product->show_photo($conf->produit->dir_output); + print ''; + $product->show_photo($conf->produit->dir_output,1); print ''; + // Description + print ''.$langs->trans("Description").''.nl2br($product->description).''; - if ($product->type == 0 && defined("MAIN_MODULE_STOCK")) + // Stock + if ($product->type == 0 && $conf->stock->enabled) { print ''.$langs->trans("Stock").''; if ($product->no_stock) @@ -398,8 +403,8 @@ else } print ''; } - print ''.$langs->trans("Description").''.nl2br($product->description).''; + // Duration if ($product->type == 1) { print ''.$langs->trans("Duration").''.$product->duration_value.' '; @@ -418,7 +423,9 @@ else } print "
\n"; - print ''; + + // Liste des fournisseurs + print '
'; print ''; print ''; @@ -459,7 +466,7 @@ else $db->free(); } print '
'; print $langs->trans("Suppliers").''.$langs->trans("Ref").'
'; - print "\n"; + print "
\n"; /*