From 3ac2ab8798341a20dc1515ecd8e9349789123f8f Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 24 Oct 2013 11:15:08 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=EB=B6=80?= =?UTF-8?q?=EB=B6=84=EC=B7=A8=EC=86=8C=20=EC=B2=98=EB=A6=AC=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EA=B0=84=EC=86=8C=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/orderpartcancel.php | 20 +++++-- adm/shop_admin/orderpartcancelupdate.php | 70 +++++++++--------------- 2 files changed, 39 insertions(+), 51 deletions(-) diff --git a/adm/shop_admin/orderpartcancel.php b/adm/shop_admin/orderpartcancel.php index 81eb25ade..2d05a24df 100644 --- a/adm/shop_admin/orderpartcancel.php +++ b/adm/shop_admin/orderpartcancel.php @@ -18,6 +18,14 @@ if($od['od_receipt_price'] - $od['od_refund_price'] <= 0) $g5['title'] = $od['od_settle_case'].' 부분취소'; include_once(G5_PATH.'/head.sub.php'); + +// 과세, 비과세 취소가능 금액계산 +$sql = " select SUM( IF( ct_notax = 0, ( IF(io_type = 1, (io_price * ct_qty), ( (ct_price + io_price) * ct_qty) ) - cp_price ), 0 ) ) as tax_mny, + SUM( IF( ct_notax = 1, ( IF(io_type = 1, (io_price * ct_qty), ( (ct_price + io_price) * ct_qty) ) - cp_price ), 0 ) ) as free_mny + from {$g5['g5_shop_cart_table']} + where od_id = '$od_id' + and ct_status IN ( '취소', '반품', '품절' ) "; +$sum = sql_fetch($sql); ?>
@@ -35,12 +43,12 @@ include_once(G5_PATH.'/head.sub.php'); - 과세 입금금액 - + 과세 취소가능 금액 + - 비과세 입금금액 - + 비과세 취소가능 금액 + @@ -68,8 +76,8 @@ include_once(G5_PATH.'/head.sub.php');