From c904b54c39c878ae22d61ac6cbe856eff01b2e72 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 15 Dec 2006 12:14:10 +0000 Subject: [PATCH] Utilise SetSellPrice --- htdocs/product/price.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/product/price.php b/htdocs/product/price.php index b0bb74a7990..f6fbdf30192 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -42,11 +42,9 @@ $user->getrights('produit'); if (!$user->rights->produit->lire) accessforbidden(); - $types[0] = $langs->trans("Product"); $types[1] = $langs->trans("Service"); - /* * Actions */ @@ -58,7 +56,7 @@ if ($_POST["action"] == 'update_price' && $result = $product->fetch($_GET["id"]); - $product->price = ereg_replace(" ","",$_POST["price"]); + $product->SetSellprice($_POST["price"]); $product->price_base_type = $_POST["price_base_type"]; // MultiPrix if($conf->global->PRODUIT_MULTIPRICES == 1)