From bee21430e9cbc76ecb820989d388dd0111251cc3 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Thu, 16 Feb 2012 15:19:11 +0000 Subject: [PATCH] // fix bug about order_canada upgrade git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13403 b9a71923-0436-4b27-9f14-aed3839534dd --- install-dev/upgrade/php/update_order_canada.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-dev/upgrade/php/update_order_canada.php b/install-dev/upgrade/php/update_order_canada.php index 0d87b32b5..ba0f83a13 100644 --- a/install-dev/upgrade/php/update_order_canada.php +++ b/install-dev/upgrade/php/update_order_canada.php @@ -116,9 +116,9 @@ function update_order_canada_ps_round($val){ switch ($ps_price_round_mode) { - case PS_ROUND_UP: + case 0: return ceil($val * 100)/100; - case PS_ROUND_DOWN: + case 1: return floor($val * 100)/100; default: return round($val, 2);