관리자는 무조건 현금영수증 발급하도록 수정
This commit is contained in:
@ -531,8 +531,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
if ($default['de_taxsave_use'] && $amount['미수'] == 0) {
|
if ($od['od_misu'] == 0 && $od['od_receipt_price'] && ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체')) {
|
||||||
if ($od['od_receipt_price'] && ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체')) {
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">현금영수증</th>
|
<th scope="row">현금영수증</th>
|
||||||
@ -568,7 +567,6 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -174,20 +174,19 @@ if(!sql_query(" select pp_cash from {$g5['g5_shop_personalpay_table']} limit 1 "
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
if ($default['de_taxsave_use']) {
|
$is_cash_receipt = true;
|
||||||
$is_cash_receipt = true;
|
|
||||||
|
|
||||||
// 주문내역이 있으면 현금영수증 발급하지 않음
|
// 주문내역이 있으면 현금영수증 발급하지 않음
|
||||||
if($pp['od_id']) {
|
if($pp['od_id']) {
|
||||||
$sql = " select count(od_id) as cnt from {$g5['g5_shop_order_table']} where od_id = '{$pp['od_id']}' ";
|
$sql = " select count(od_id) as cnt from {$g5['g5_shop_order_table']} where od_id = '{$pp['od_id']}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
if($row['cnt'] > 0)
|
if($row['cnt'] > 0)
|
||||||
$is_cash_receipt = false;
|
$is_cash_receipt = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_cash_receipt && ($pp['pp_price'] - $pp['pp_receipt_price']) == 0) {
|
if ($is_cash_receipt && ($pp['pp_price'] - $pp['pp_receipt_price']) == 0) {
|
||||||
if ($pp['pp_receipt_price'] && ($pp['pp_settle_case'] == '무통장' || $pp['pp_settle_case'] == '가상계좌' || $pp['pp_settle_case'] == '계좌이체')) {
|
if ($pp['pp_receipt_price'] && ($pp['pp_settle_case'] == '무통장' || $pp['pp_settle_case'] == '가상계좌' || $pp['pp_settle_case'] == '계좌이체')) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">현금영수증</th>
|
<th scope="row">현금영수증</th>
|
||||||
@ -223,7 +222,6 @@ if(!sql_query(" select pp_cash from {$g5['g5_shop_personalpay_table']} limit 1 "
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user