#283 개인결제 기능 추가
This commit is contained in:
@ -141,13 +141,37 @@ if(!$default['de_card_test']) {
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
if ( $tx_cd == "TX00" )
|
||||
{
|
||||
// 주문서 UPDATE
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
set od_receipt_amount = '$ipgm_mnyx',
|
||||
od_receipt_time = '$tx_tm'
|
||||
where od_id = '$order_no'
|
||||
and od_tno = '$tno' ";
|
||||
sql_query($sql, FALSE);
|
||||
$sql = " select pp_id, od_id from {$g4['shop_personalpay_table']} where pp_id = '$order_no' and pp_tno = '$tno' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
if($row['pp_id']) {
|
||||
// 개인결제 UPDATE
|
||||
$sql = " update {$g4['shop_personalpay_table']}
|
||||
set pp_receipt_amount = '$ipgm_mnyx',
|
||||
pp_receipt_time = '$tx_tm'
|
||||
where pp_id = '$order_no'
|
||||
and pp_tno = '$tno' ";
|
||||
sql_query($sql, false);
|
||||
|
||||
if($row['od_id']) {
|
||||
// 주문서 UPDATE
|
||||
$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", $tx_tm);
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
set od_receipt_amount = od_receipt_amount + '$ipgm_mnyx',
|
||||
od_receipt_time = '$tx_tm',
|
||||
od_shop_memo = concat(od_shop_memo, \"\\n개인결제 ".$row['pp_id']." 로 결제완료 - ".$receipt_time."\")
|
||||
where od_id = '{$row['od_id']}' ";
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
} else {
|
||||
// 주문서 UPDATE
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
set od_receipt_amount = '$ipgm_mnyx',
|
||||
od_receipt_time = '$tx_tm'
|
||||
where od_id = '$order_no'
|
||||
and od_tno = '$tno' ";
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
|
||||
Reference in New Issue
Block a user