diff --git a/htdocs/product/price.php b/htdocs/product/price.php index ffdb6ab3f43..340b30ffc9a 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -45,7 +45,7 @@ accessforbidden(); * Actions */ -if ($_POST["action"] == 'update_price' && +if ($_POST["action"] == 'update_price' && ! $_POST["cancel"] && $user->rights->produit->creer) { $product = new Product($db); @@ -87,7 +87,7 @@ if ($_POST["action"] == 'update_price' && $newprice=price2num($_POST["price"],'MU'); $newpricebase=$_POST["price_base_type"]; } - + if ($product->update_price($product->id, $newprice, $newpricebase, $user) > 0) { $_GET["action"] = ''; @@ -146,7 +146,7 @@ if($conf->global->PRODUIT_MULTIPRICES) { print '
| '; - $text=$langs->trans('SellingPrice'); - print $html->textwithhelp($text,$langs->trans("PrecisionUnitIsLimitedToXDecimals",$conf->global->MAIN_MAX_DECIMALS_UNIT),$direction=1,$usehelpcursor=1); + print $langs->trans('SellingPrice'); print ' | '; if ($product->price_base_type == 'TTC') @@ -239,35 +241,41 @@ if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer) } else { - for($i=1;$i<=$conf->global->PRODUIT_MULTIPRICES_LIMIT;$i++) - { - print ''; - } + + print ''; + } - + } @@ -318,12 +326,12 @@ if ($result) print '||||
| '.$langs->trans("AppliedPricesFrom").' | '; - + if($conf->global->PRODUIT_MULTIPRICES) { print ''.$langs->trans("MultiPriceLevelsName").' | '; } - + print ''.$langs->trans("HT").' | '; print ''.$langs->trans("TTC").' | '; print ''.$langs->trans("PriceBase").' | '; @@ -339,7 +347,7 @@ if ($result) print "
| ".dolibarr_print_date($objp->dp,"dayhour")." | "; - + // catégorie de Prix if ($conf->global->PRODUIT_MULTIPRICES) {