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