요청처리 상태를 고객의 요청에 반영되도록 코드 추가
This commit is contained in:
@ -21,7 +21,7 @@ if(!trim($rq_content))
|
||||
|
||||
|
||||
// 부분취소처리(결제금액이 있을 때만)
|
||||
if(($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == '계좌이체') && $rq_status == 1 && $od['od_receipt_amount'] > 0 && $od['od_tno'])
|
||||
if(($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == '계좌이체') && ($rq_amout2 > 0 || $rq_amount3 > 0) && $rq_status == 1 && $od['od_receipt_amount'] > 0 && $od['od_tno'])
|
||||
{
|
||||
$rq_amount2 = preg_replace('/[^0-9]/', '', $rq_amount2);
|
||||
$rq_amount3 = preg_replace('/[^0-9]/', '', $rq_amount3);
|
||||
@ -202,6 +202,12 @@ if($od['od_receipt_amount'] > 0 && $rq_amount1 > 0) {
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
// 고객요청 자료에 상태반영
|
||||
$sql = " update {$g4['shop_request_table']}
|
||||
set rq_status = '$rq_status'
|
||||
where rq_id = '$rq_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 처리내용입력
|
||||
$sql = " insert into `{$g4['shop_request_table']}`
|
||||
( rq_type, rq_parent, od_id, ct_id, mb_id, rq_content, rq_status, rq_item, dl_company, rq_invoice, rq_amount1, rq_amount2, rq_amount3, rq_account, rq_ip, rq_time )
|
||||
|
||||
Reference in New Issue
Block a user