= G5_TIME_YMD) alert_close('실시간 계좌이체건의 부분취소 요청은 결제일 익일에 가능합니다.'); if($od['od_receipt_price'] - $od['od_refund_price'] <= 0) alert_close('부분취소 처리할 금액이 없습니다.'); $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); ?>