현금영수증 비과세 금액 적용되도록 수정
This commit is contained in:
@ -9,7 +9,7 @@ if (!$od)
|
||||
|
||||
$goods = get_goods($od['od_id']);
|
||||
$goods_name = $goods['full_name'];
|
||||
$order_price = $od['od_receipt_price'] - $od['od_refund_price'];
|
||||
$order_price = $od['od_tax_mny'] + $od['od_vat_mny'] + $od['od_free_mny'];
|
||||
|
||||
switch($od['od_settle_case']) {
|
||||
case '가상계좌':
|
||||
@ -61,8 +61,8 @@ if ($LGD_METHOD == "AUTH") { // 현금영수증 발급 요청
|
||||
$xpay->Set("LGD_CASHRECEIPTUSE", $LGD_CASHRECEIPTUSE);
|
||||
$xpay->Set("LGD_ENCODING", "UTF-8");
|
||||
|
||||
if($od['od_tax_flag'] && $od['free_mny'] > 0) {
|
||||
$xpay->Set("LGD_TAXFREEAMOUNT", $od['free_mny']); //비과세 금액
|
||||
if($od['od_tax_flag'] && $od['od_free_mny'] > 0) {
|
||||
$xpay->Set("LGD_TAXFREEAMOUNT", $od['od_free_mny']); //비과세 금액
|
||||
}
|
||||
|
||||
if ($LGD_PAYTYPE == "SC0030"){ //기결제된 계좌이체건 현금영수증 발급요청시 필수
|
||||
|
||||
@ -14,10 +14,17 @@ $goods_name = $goods['full_name'];
|
||||
|
||||
$trad_time = date("YmdHis");
|
||||
|
||||
/*
|
||||
$amt_tot = (int)($od['od_receipt_price'] - $od['od_refund_price']);
|
||||
$amt_sup = (int)round(($amt_tot * 10) / 11);
|
||||
$amt_svc = 0;
|
||||
$amt_tax = (int)($amt_tot - $amt_sup);
|
||||
*/
|
||||
|
||||
$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;
|
||||
|
||||
// 신청폼
|
||||
if($od['od_pg'])
|
||||
|
||||
Reference in New Issue
Block a user