From 7b9390ff54bb1620e5f9a1bbb15181940552ba85 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Wed, 25 Jan 2012 18:15:55 +0000 Subject: [PATCH] // migrate orders does not use constant --- install-new/upgrade/php/migrate_orders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-new/upgrade/php/migrate_orders.php b/install-new/upgrade/php/migrate_orders.php index 970f6f930..c50a2e3f8 100644 --- a/install-new/upgrade/php/migrate_orders.php +++ b/install-new/upgrade/php/migrate_orders.php @@ -148,9 +148,9 @@ function mo_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);