db 테이블 변수에서 yc4 를 shop 으로 변경

This commit is contained in:
chicpro
2013-04-12 14:33:47 +09:00
parent 67741b429b
commit cd8d7bb32e
2 changed files with 8 additions and 8 deletions

View File

@ -28,7 +28,7 @@ if ( $req_tx == "pay" )
$trade_hms = substr($app_time,8,2).":".substr($app_time,10,2).":".substr($app_time,12,2);
// 카드내역 INSERT
$sql = "insert {$g4['yc4_card_history_table']}
$sql = "insert {$g4['shop_card_history_table']}
set od_id = '$ordr_idxx',
uq_id = '$tmp_uq_id',
cd_mall_id = '$site_cd',
@ -49,7 +49,7 @@ if ( $req_tx == "pay" )
$trade_hms = date("H:i:s", time());
// 계좌이체내역 INSERT
$sql = "insert {$g4['yc4_card_history_table']}
$sql = "insert {$g4['shop_card_history_table']}
set od_id = '$ordr_idxx',
uq_id = '$tmp_uq_id',
cd_mall_id = '$site_cd',
@ -73,7 +73,7 @@ if ( $req_tx == "pay" )
$trade_hms = date("H:i:s", time());
// 가상계좌내역 INSERT
$sql = "insert {$g4['yc4_card_history_table']}
$sql = "insert {$g4['shop_card_history_table']}
set od_id = '$ordr_idxx',
uq_id = '$tmp_uq_id',
cd_mall_id = '$site_cd',
@ -99,7 +99,7 @@ if ( $req_tx == "pay" )
$trade_hms = substr($app_time,8,6);
// 휴대폰결제내역 INSERT
$sql = "insert {$g4['yc4_card_history_table']}
$sql = "insert {$g4['shop_card_history_table']}
set od_id = '$ordr_idxx',
uq_id = '$tmp_uq_id',
cd_mall_id = '$site_cd',

View File

@ -3,7 +3,7 @@ include './_common.php';
include G4_LIB_PATH.'/etc.lib.php';
// 현금영수증 필드생성
$sql = " ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_cash_no` VARCHAR( 255 ) NOT NULL ,
$sql = " ALTER TABLE `{$g4['shop_order_table']}` ADD `od_cash_no` VARCHAR( 255 ) NOT NULL ,
ADD `od_cash_receipt_no` VARCHAR( 255 ) NOT NULL ,
ADD `od_cash_app_time` VARCHAR( 255 ) NOT NULL ,
ADD `od_cash_reg_stat` VARCHAR( 255 ) NOT NULL ,
@ -13,10 +13,10 @@ $sql = " ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_cash_no` VARCHAR( 255 )
sql_query($sql, false);
// 현금영수증 사용, 미사용 구분
$sql = " ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_cash` TINYINT NOT NULL ";
$sql = " ALTER TABLE `{$g4['shop_order_table']}` ADD `od_cash` TINYINT NOT NULL ";
sql_query($sql, false);
$sql = " select count(*) as cnt from {$g4['yc4_order_table']} where od_id = '{$_POST['ordr_idxx']}' and od_cash = 1 ";
$sql = " select count(*) as cnt from {$g4['shop_order_table']} where od_id = '{$_POST['ordr_idxx']}' and od_cash = 1 ";
$row = sql_fetch($sql);
if ($row['cnt']) {
alert('이미 등록된 현금영수증 입니다.');
@ -241,7 +241,7 @@ if ($row['cnt']) {
/* = -------------------------------------------------------------------------- = */
$bSucc = ""; // DB 작업 실패일 경우 "false" 로 세팅
$sql = " update {$g4['yc4_order_table']}
$sql = " update {$g4['shop_order_table']}
set od_cash_no = '$cash_no',
od_cash_receipt_no = '$receipt_no',
od_cash_app_time = '$app_time',