From 774b009b0ab1c0cbfa0efaae7a441bf51c43b1c6 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 15 Dec 2006 12:16:09 +0000 Subject: [PATCH] Ajoute la methode SetSellPrice --- htdocs/product.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 1d456f42b59..ac4c6bd8862 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -117,6 +117,19 @@ class Product return 1; } } + /** + * \brief Definit le prix de vente + * \return void + */ + function SetSellPrice($price, $base_type='HT') + { + $price = ereg_replace(" ","", $price); + $price = ereg_replace(",",".", $price); + + $this->price = $price; + + $this->price_base_type = $base_type; + } /** * \brief Insère le produit en base * \param user Utilisateur qui effectue l'insertion