1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?php include_once('./_common.php');
$g5['title'] = '주문번호 '.$od_id.' 현금영수증 발행'; include_once(G5_PATH.'/head.sub.php');
if($tx == 'personalpay') { $od = sql_fetch(" select * from {$g5['g5_shop_personalpay_table']} where pp_id = '$od_id' "); if (!$od) die('<p id="scash_empty">개인결제 내역이 존재하지 않습니다.</p>');
$goods_name = $od['pp_name'].'님 개인결제'; $amt_tot = (int)$od['pp_receipt_price']; $dir = $od['pp_pg']; $od_name = $od['pp_name']; $od_email = get_text($od['pp_email']); $od_tel = get_text($od['pp_hp']);
$amt_tot = (int)$od['pp_receipt_price']; $amt_sup = (int)round(($amt_tot * 10) / 11); $amt_svc = 0; $amt_tax = (int)($amt_tot - $amt_sup); } else { $od = sql_fetch(" select * from {$g5['g5_shop_order_table']} where od_id = '$od_id' "); if (!$od) die('<p id="scash_empty">주문서가 존재하지 않습니다.</p>');
$goods = get_goods($od['od_id']); $goods_name = $goods['full_name']; $amt_tot = (int)($od['od_receipt_price'] - $od['od_refund_price']); $dir = $od['od_pg']; $od_name = $od['od_name']; $od_email = get_text($od['od_email']); $od_tel = get_text($od['od_tel']);
$amt_tot = (int)$od['od_tax_mny'] + (int)$od['od_vat_mny'] + (int)$od['od_free_mny']; $amt_sup = (int)$od['od_tax_mny'] + (int)$od['od_free_mny']; $amt_tax = (int)$od['od_vat_mny']; $amt_svc = 0; }
$trad_time = date("YmdHis");
// 신청폼 if(!$dir) $dir = $default['de_pg_service'];
if(file_exists(G5_SHOP_PATH.'/'.$dir.'/taxsave_form.php')){ include_once(G5_SHOP_PATH.'/'.$dir.'/taxsave_form.php'); } else { alert_close("해당 PG는 현금영수증 발행이 준비되어 있지 않습니다."); }
include_once(G5_PATH.'/tail.sub.php'); ?>
|