Utilise SetSellPrice

This commit is contained in:
Rodolphe Quiedeville 2006-12-15 12:14:10 +00:00
parent 77c1de8939
commit c904b54c39

View File

@ -42,11 +42,9 @@ $user->getrights('produit');
if (!$user->rights->produit->lire) if (!$user->rights->produit->lire)
accessforbidden(); accessforbidden();
$types[0] = $langs->trans("Product"); $types[0] = $langs->trans("Product");
$types[1] = $langs->trans("Service"); $types[1] = $langs->trans("Service");
/* /*
* Actions * Actions
*/ */
@ -58,7 +56,7 @@ if ($_POST["action"] == 'update_price' &&
$result = $product->fetch($_GET["id"]); $result = $product->fetch($_GET["id"]);
$product->price = ereg_replace(" ","",$_POST["price"]); $product->SetSellprice($_POST["price"]);
$product->price_base_type = $_POST["price_base_type"]; $product->price_base_type = $_POST["price_base_type"];
// MultiPrix // MultiPrix
if($conf->global->PRODUIT_MULTIPRICES == 1) if($conf->global->PRODUIT_MULTIPRICES == 1)