From 3e79144d3969f0e79bab06334b27b101341887e4 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 11 Jun 2013 13:55:38 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=EC=86=A1=EB=B9=84=20=EC=BF=A0?= =?UTF-8?q?=ED=8F=B0=20=EA=B8=88=EC=95=A1=20=EA=B3=84=EC=82=B0=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/orderformupdate.php | 2 +- shop/orderformupdate.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/shop/orderformupdate.php b/mobile/shop/orderformupdate.php index e8050dabc..34b98de7b 100644 --- a/mobile/shop/orderformupdate.php +++ b/mobile/shop/orderformupdate.php @@ -206,7 +206,7 @@ if($is_member && $send_cost > 0) { $dc = 0; if($cp['cp_id'] && ($cp['cp_minimum'] <= $tot_od_amount)) { if($cp['cp_type']) { - $dc = floor(($tot_od_amount * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc']; + $dc = floor(($send_cost * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc']; } else { $dc = $cp['cp_amount']; } diff --git a/shop/orderformupdate.php b/shop/orderformupdate.php index ab900a55f..a920ef833 100644 --- a/shop/orderformupdate.php +++ b/shop/orderformupdate.php @@ -200,7 +200,7 @@ if($is_member && $send_cost > 0) { $dc = 0; if($cp['cp_id'] && ($cp['cp_minimum'] <= $tot_od_amount)) { if($cp['cp_type']) { - $dc = floor(($tot_od_amount * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc']; + $dc = floor(($send_cost * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc']; } else { $dc = $cp['cp_amount']; }