Ajoute la methode SetSellPrice
This commit is contained in:
parent
c904b54c39
commit
774b009b0a
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user