order 테이블에 주문금액 등 기록되도록 수정
This commit is contained in:
@ -3,13 +3,9 @@ include_once('./_common.php');
|
||||
|
||||
if(get_magic_quotes_gpc())
|
||||
{
|
||||
//$_GET = array_map("stripslashes", $_GET);
|
||||
//$_POST = array_map("stripslashes", $_POST);
|
||||
$_GET = array_add_callback("stripslashes", $_GET);
|
||||
$_POST = array_add_callback("stripslashes", $_POST);
|
||||
}
|
||||
//$_GET = array_map("mysql_real_escape_string", $_GET);
|
||||
//$_POST = array_map("mysql_real_escape_string", $_POST);
|
||||
$_GET = array_add_callback("mysql_real_escape_string", $_GET);
|
||||
$_POST = array_add_callback("mysql_real_escape_string", $_POST);
|
||||
|
||||
@ -301,16 +297,14 @@ $i_amount = $i_amount + $i_send_cost + $i_send_cost2 - $i_temp_point - $i_send_c
|
||||
|
||||
if ($od_settle_case == "무통장")
|
||||
{
|
||||
$od_temp_amount = $i_amount;
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_receipt_amount = 0;
|
||||
$od_status = G4_OD_STATUS_ORDER;
|
||||
}
|
||||
else if ($od_settle_case == "계좌이체")
|
||||
{
|
||||
include G4_MSHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$od_temp_amount = $i_amount;
|
||||
|
||||
$od_tno = $tno;
|
||||
$od_receipt_amount = $amount;
|
||||
$od_receipt_point = $i_temp_point;
|
||||
@ -320,14 +314,13 @@ else if ($od_settle_case == "계좌이체")
|
||||
$bank_name = iconv("cp949", "utf8", $bank_name);
|
||||
$od_bank_account = $bank_name;
|
||||
$pg_amount = $amount;
|
||||
$od_status = G4_OD_STATUS_SETTLE;
|
||||
}
|
||||
else if ($od_settle_case == "가상계좌")
|
||||
{
|
||||
include G4_MSHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$od_temp_amount = $i_amount;
|
||||
$od_receipt_point = $i_temp_point;
|
||||
|
||||
$od_tno = $tno;
|
||||
$od_receipt_amount = 0;
|
||||
$bankname = iconv("cp949", "utf8", $bankname);
|
||||
@ -335,26 +328,24 @@ else if ($od_settle_case == "가상계좌")
|
||||
$od_bank_account = $bankname.' '.$account.' '.$depositor;
|
||||
$od_deposit_name = $od_name;
|
||||
$pg_amount = $amount;
|
||||
$od_status = G4_OD_STATUS_ORDER;
|
||||
}
|
||||
else if ($od_settle_case == "휴대폰")
|
||||
{
|
||||
include G4_MSHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$od_temp_amount = $i_amount;
|
||||
|
||||
$od_tno = $tno;
|
||||
$od_receipt_amount = $amount;
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_receipt_time = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3 \\4:\\5:\\6", $app_time);
|
||||
$od_bank_account = $commid.' '.$mobile_no;
|
||||
$pg_amount = $amount;
|
||||
$od_status = G4_OD_STATUS_SETTLE;
|
||||
}
|
||||
else if ($od_settle_case == "신용카드")
|
||||
{
|
||||
include G4_MSHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$od_temp_amount = $i_amount;
|
||||
|
||||
$od_tno = $tno;
|
||||
$od_app_no = $app_no;
|
||||
$od_receipt_amount = $amount;
|
||||
@ -363,6 +354,7 @@ else if ($od_settle_case == "신용카드")
|
||||
$card_name = iconv("cp949", "utf8", $card_name);
|
||||
$od_bank_account = $card_name;
|
||||
$pg_amount = $amount;
|
||||
$od_status = G4_OD_STATUS_SETTLE;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -392,8 +384,8 @@ if($escw_yn == 'Y')
|
||||
$od_escrow = 1;
|
||||
|
||||
// 복합과세 금액
|
||||
$od_tax_mny = round($od_temp_amount / 1.1);
|
||||
$od_vat_mny = $od_temp_amount - $od_tax_mny;
|
||||
$od_tax_mny = round($i_amount / 1.1);
|
||||
$od_vat_mny = $i_amount - $od_tax_mny;
|
||||
$od_free_mny = 0;
|
||||
if($default['de_tax_flag_use']) {
|
||||
$od_tax_mny = (int)$_POST['comm_tax_mny'];
|
||||
@ -423,11 +415,13 @@ $sql = " insert {$g4['shop_order_table']}
|
||||
od_b_addr2 = '$od_b_addr2',
|
||||
od_deposit_name = '$od_deposit_name',
|
||||
od_memo = '$od_memo',
|
||||
od_cart_count = '$tot_ct_count',
|
||||
od_cart_amount = '$tot_ct_amount',
|
||||
od_cart_coupon = '$tot_it_cp_amount',
|
||||
od_send_cost = '$od_send_cost',
|
||||
od_send_coupon = '$tot_sc_cp_amount',
|
||||
od_send_cost2 = '$od_send_cost2',
|
||||
od_coupon = '$tot_od_cp_amount',
|
||||
od_temp_amount = '$od_temp_amount',
|
||||
od_receipt_amount = '$od_receipt_amount',
|
||||
od_receipt_point = '$od_receipt_point',
|
||||
od_bank_account = '$od_bank_account',
|
||||
@ -439,6 +433,7 @@ $sql = " insert {$g4['shop_order_table']}
|
||||
od_tax_mny = '$od_tax_mny',
|
||||
od_vat_mny = '$od_vat_mny',
|
||||
od_free_mny = '$od_free_mny',
|
||||
od_status = '$od_status',
|
||||
od_shop_memo = '',
|
||||
od_hope_date = '$od_hope_date',
|
||||
od_time = '".G4_TIME_YMDHIS."',
|
||||
|
||||
Reference in New Issue
Block a user