[-] BO: Fix #PSCFV-4874

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17830 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-10 18:00:00 +00:00
parent a07e1b3005
commit 16724949e4
@@ -2806,7 +2806,8 @@ class AdminProductsControllerCore extends AdminController
$data->assign('ecotaxTaxRate', Tax::getProductEcotaxRate());
$data->assign('tax_exclude_taxe_option', Tax::excludeTaxeOption());
$data->assign('ps_use_ecotax', Configuration::get('PS_USE_ECOTAX'));
$product_price = Tools::convertPrice($product->price, $this->context->currency, true, $this->context);
$product->price = Tools::convertPrice($product->price, $this->context->currency, true, $this->context);
if ($product->unit_price_ratio != 0)
$data->assign('unit_price', Tools::ps_round($product->price / $product->unit_price_ratio, 2));
else