#212 결제필드 간소화 작업 중

This commit is contained in:
chicpro
2013-06-13 18:02:01 +09:00
parent 21da1ac432
commit 55153185c2
21 changed files with 175 additions and 217 deletions

View File

@ -6,40 +6,24 @@ include_once(G4_LIB_PATH.'/icode.sms.lib.php');
auth_check($auth[$sub_menu], "w");
if ($od_bank_time)
if ($od_receipt_time)
{
if (check_datetime($od_bank_time) == false)
alert('무통장 입금일시 오류입니다.');
}
if ($od_card_time)
{
if (check_datetime($od_card_time) == false)
alert('신용카드 결제일시 오류입니다.');
}
if ($od_hp_time)
{
if (check_datetime($od_hp_time) == false)
alert("휴대폰 결제일시 오류입니다.");
if (check_datetime($od_receipt_time) == false)
alert('결제일시 오류입니다.');
}
$sql = " update {$g4['shop_order_table']}
set od_deposit_name = '$od_deposit_name',
od_bank_account = '$od_bank_account',
od_bank_time = '$od_bank_time',
od_card_time = '$od_card_time',
od_hp_time = '$od_hp_time',
od_receipt_bank = '$od_receipt_bank',
od_receipt_card = '$od_receipt_card',
od_receipt_hp = '$od_receipt_hp',
od_receipt_point = '$od_receipt_point',
od_cancel_card = '$od_cancel_card',
od_dc_amount = '$od_dc_amount',
od_refund_amount = '$od_refund_amount',
dl_id = '$dl_id',
od_invoice = '$od_invoice',
od_invoice_time = '$od_invoice_time' ";
set od_deposit_name = '$od_deposit_name',
od_bank_account = '$od_bank_account',
od_receipt_time = '$od_bank_time',
od_receipt_amount = '$od_receipt_amount',
od_receipt_point = '$od_receipt_point',
od_cancel_card = '$od_cancel_card',
od_dc_amount = '$od_dc_amount',
od_refund_amount = '$od_refund_amount',
dl_id = '$dl_id',
od_invoice = '$od_invoice',
od_invoice_time = '$od_invoice_time' ";
if (isset($od_send_cost))
$sql .= " , od_send_cost = '$od_send_cost' ";
$sql .= " where od_id = '$od_id' ";