diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php
index fee039bc62c..5fc49401151 100644
--- a/htdocs/product/fiche.php
+++ b/htdocs/product/fiche.php
@@ -205,86 +205,82 @@ else
{
if ($action <> 'edit' && $action <> 're-edit')
{
- print '
';
+ print '';
- print_fiche_titre('Fiche '.$types[$product->type].' : '.$product->ref, $mesg);
+ print_fiche_titre('Fiche '.$types[$product->type].' : '.$product->ref, $mesg);
- print '';
- print "";
- print '| Référence | '.$product->ref.' | ';
- print '';
- if ($product->envente)
- {
- print "En vente";
- }
- else
- {
- print "Cet article n'est pas en vente";
- }
- print ' |
';
- print "Libellé | $product->libelle | ";
- print 'Statistiques | ';
- print '| Prix de vente | '.price($product->price).' | ';
- print '';
- print "Propositions commerciales : ".$product->count_propale();
- print " Proposé à ".$product->count_propale_client()." clients";
- print " Factures : ".$product->count_facture();
- print ' |
';
-
- print "".'| Taux TVA | '.$product->tva_tx.' % |
';
- print "| Description | ".nl2br($product->description)." |
";
-
- if ($product->type == 1)
- {
- print "".'| Durée | '.$product->duration_value.' ';
- if ($product->duration_value > 1)
+ print '';
+ print "";
+ print '| Référence | '.$product->ref.' | ';
+ print '';
+ if ($product->envente)
{
- $plu = "s";
+ print "En vente";
}
- switch ($product->duration_unit)
+ else
{
- case "d":
- print "jour$plu ";
- break;
- case "w":
- print "semaine$plu ";
- break;
- case "m":
- print 'mois ';
- break;
- case "y":
- print "an$plu ";
- break;
+ print "Cet article n'est pas en vente";
}
print ' | ';
+ print "Libellé | $product->libelle | ";
+ print 'Statistiques | ';
+ print '| Prix de vente | '.price($product->price).' | ';
+ print '';
+ print "Propositions commerciales : ".$product->count_propale();
+ print " Proposé à ".$product->count_propale_client()." clients";
+ print " Factures : ".$product->count_facture();
+ print ' | ';
+
+ print "".'| Taux TVA | '.$product->tva_tx.' % | ';
+ print "| Description | ".nl2br($product->description)." | ";
+
+ if ($product->type == 1)
+ {
+ print "".'| Durée | '.$product->duration_value.' ';
+ if ($product->duration_value > 1)
+ {
+ $plu = "s";
+ }
+ switch ($product->duration_unit)
+ {
+ case "d":
+ print "jour$plu ";
+ break;
+ case "w":
+ print "semaine$plu ";
+ break;
+ case "m":
+ print 'mois ';
+ break;
+ case "y":
+ print "an$plu ";
+ break;
+ }
+ print ' | ';
+ }
+
+ print " ";
}
- print " |
";
- }
-
- if ($action == 'edit_price' && $user->rights->produit->creer)
- {
- print '
Nouveau prix
';
-
- print "';
- }
+ if ($action == 'edit_price' && $user->rights->produit->creer)
+ {
+ print '
Nouveau prix
';
+ print "';
+ }
}