#186 가격 필드명 price 로 변경

This commit is contained in:
chicpro
2013-05-16 09:14:05 +09:00
parent ab15f92def
commit 5759a65cfd
40 changed files with 89 additions and 95 deletions

View File

@ -157,7 +157,7 @@ $pg_anchor = '<ul class="anchor">
<?php
$image_rate = 2.5;
for ($i=0; $row=sql_fetch_array($result); $i++) {
$ct_amount['소계'] = $row['ct_amount'] * $row['ct_qty'];
$ct_amount['소계'] = $row['ct_price'] * $row['ct_qty'];
$ct_point['소계'] = $row['ct_point'] * $row['ct_qty'];
if ($row['ct_status']=='주문' || $row['ct_status']=='준비' || $row['ct_status']=='배송' || $row['ct_status']=='완료')
$t_ct_amount['정상'] += $row['ct_price'] * $row['ct_qty'];

View File

@ -229,7 +229,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
$it_name = '<a href="'.$href.'">'.cut_str($row2['it_name'],35).'</a><br>';
$it_name .= print_item_options($row2['it_id'], $row2['it_opt1'], $row2['it_opt2'], $row2['it_opt3'], $row2['it_opt4'], $row2['it_opt5'], $row2['it_opt6']);
$sub_amount = $row2['ct_qty'] * $row2['ct_amount'];
$sub_amount = $row2['ct_qty'] * $row2['ct_price'];
$sub_point = $row2['ct_qty'] * $row2['ct_point'];
?>
@ -239,7 +239,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<li><a href="<?php echo $href; ?>"><?php echo get_it_image($row2['it_id'], 50, 50); ?><?php echo $it_name; ?></a></li>
</ul>
</td>
<td headers="sodr_all_cost"><?php echo number_format($row2['ct_amount']); ?></td>
<td headers="sodr_all_cost"><?php echo number_format($row2['ct_price']); ?></td>
<td headers="sodr_all_qty"><?php echo $row2['ct_qty']; ?></td>
<td headers="sodr_all_pt"><?php echo number_format($sub_point); ?></td>
<td headers="sodr_all_tot"><?php echo number_format($sub_amount); ?></td>

View File

@ -294,7 +294,7 @@ if (mysql_num_rows($result) == 0)
$cnt = $sub_tot_qty = $sub_tot_amount = 0;
while ($row2 = sql_fetch_array($res2))
{
$row2_tot_amount = $row2['ct_amount'] * $row2['ct_qty'];
$row2_tot_amount = $row2['ct_price'] * $row2['ct_qty'];
$sub_tot_qty += $row2['ct_qty'];
$sub_tot_amount += $row2_tot_amount;
@ -333,7 +333,7 @@ if (mysql_num_rows($result) == 0)
?>
<tr>
<td><?php echo $it_name; ?></td>
<td class="td_bignum"><?php echo number_format($row2['ct_amount']); ?></td>
<td class="td_bignum"><?php echo number_format($row2['ct_price']); ?></td>
<td class="td_smallnum"><?php echo $fontqty1; ?><?php echo number_format($row2['ct_qty']); ?><?php echo $fontqty2; ?></td>
<td class="td_bignum"><?php echo number_format($row2_tot_amount); ?></td>
</tr>

View File

@ -55,9 +55,9 @@ $sql = " select a.od_id,
b.it_opt6,
b.ct_status,
b.ct_qty,
b.ct_amount,
b.ct_price,
b.ct_point,
(b.ct_qty * b.ct_amount) as ct_sub_amount,
(b.ct_qty * b.ct_price) as ct_sub_amount,
(b.ct_qty * b.ct_point) as ct_sub_point,
c.it_id,
c.it_name,
@ -77,7 +77,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
{
$lines[$i] = $row;
$tot_amount += $row['ct_amount'];
$tot_amount += $row['ct_price'];
$tot_qty += $row['ct_qty'];
$tot_sub_amount += $row['ct_sub_amount'];
$tot_sub_point += $row['ct_sub_point'];
@ -144,7 +144,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<th scope="col"><a href="<?php echo title_sort("it_name")."&amp;$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("od_name")."&amp;$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a><br>입금자</th>
<th scope="col"><a href="<?php echo title_sort("mb_id")."&amp;$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("ct_amount")."&amp;$qstr1"; ?>">판매가<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("ct_price")."&amp;$qstr1"; ?>">판매가<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("ct_qty")."&amp;$qstr1"; ?>">수량<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("ct_sub_amount")."&amp;$qstr1"; ?>">소계<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("ct_sub_point")."&amp;$qstr1"; ?>">포인트<span class="sound_only"> 순 정렬</span></a></th>
@ -183,7 +183,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<?php if ($lines[$i]['od_deposit_name'] != "") echo '<br>'.$lines[$i]['od_deposit_name']?>
</td>
<td class="td_name"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=mb_id&amp;search=<?php echo $lines[$i]['mb_id']; ?>"><?php echo $lines[$i]['mb_id']; ?></a></td>
<td><?php echo number_format($lines[$i]['ct_amount']); ?></td>
<td><?php echo number_format($lines[$i]['ct_price']); ?></td>
<td><?php echo $lines[$i]['ct_qty']; ?></td>
<td><?php echo number_format($lines[$i]['ct_sub_amount']); ?></td>
<td><?php echo number_format($lines[$i]['ct_sub_point']); ?></td>

View File

@ -53,8 +53,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$lines[$i] = $row;
// 장바구니 상태별 금액
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
$sql1 = " select (SUM(ct_price * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_price * ct_qty, 0))) as ordercancel /* 주문취소 */
from {$g4['shop_cart_table']}
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);

View File

@ -53,8 +53,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$lines[$i] = $row;
// 장바구니 상태별 금액
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
$sql1 = " select (SUM(ct_price * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_price * ct_qty, 0))) as ordercancel /* 주문취소 */
from {$g4['shop_cart_table']}
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);

View File

@ -31,8 +31,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$lines[$i] = $row;
// 장바구니 상태별 금액
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
$sql1 = " select (SUM(ct_price * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_price * ct_qty, 0))) as ordercancel /* 주문취소 */
from {$g4['shop_cart_table']}
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);

View File

@ -48,8 +48,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$lines[$i] = $row;
// 장바구니 상태별 금액
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
$sql1 = " select (SUM(ct_price * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_price * ct_qty, 0))) as ordercancel /* 주문취소 */
from {$g4['shop_cart_table']}
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);