diff --git a/htdocs/product/fiche.php3 b/htdocs/product/fiche.php3 index d4856b79e1e..be79c731f7b 100644 --- a/htdocs/product/fiche.php3 +++ b/htdocs/product/fiche.php3 @@ -32,11 +32,11 @@ if ($action == 'add') { $product = new Product($db); - $product->ref = $ref; - $product->libelle = $libelle; - $product->price = $price; + $product->ref = $HTTP_POST_VARS["ref"]; + $product->libelle = $HTTP_POST_VARS["libelle"]; + $product->price = $HTTP_POST_VARS["price"]; $product->tva_tx = $HTTP_POST_VARS["tva_tx"]; - $product->description = $desc; + $product->description = $HTTP_POST_VARS["desc"]; $id = $product->create($user); $action = ''; @@ -54,7 +54,6 @@ if ($action == 'addinpropal') $mesg .= ''.$propal->ref.''; } - if ($action == 'update' && $cancel <> 'Annuler') { $product = new Product($db); @@ -105,19 +104,39 @@ else if ( $result ) { + print '
| Référence | '.$product->ref.' | '; - print 'Statistiques | '; + if ($product->envente) + { + print "En vente"; + } + else + { + print "Cet article n'est plus en vente"; + } + print ' | '; print "Libellé | $product->label | "; + print 'Statistiques | '; + print '
| Prix | '.price($product->price).' | '; print '';
print "Propositions commerciales : ".$product->count_propale();
print " Proposé à ".$product->count_propale_client()." clients"; print " Factures : ".$product->count_facture(); print ' |
| Prix | '.price($product->price).' | |
| Taux TVA | '.$product->tva_tx.' | |
| Description | ".nl2br($product->description)." |