From 1699f93080de2c9ab41d668b852590ca7402c997 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 28 Jan 2014 17:17:35 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EB=AC=B8=EB=82=B4=EC=97=AD=20?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=EC=97=90=20=EB=B0=B0=EC=86=A1=EB=B9=84=20?= =?UTF-8?q?=EC=98=B5=EC=85=98=EA=B0=80=20=EC=B6=9C=EB=A0=A5=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/orderprintresult.php | 38 +++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/adm/shop_admin/orderprintresult.php b/adm/shop_admin/orderprintresult.php index 3c3cfb450..1d7c1a36b 100644 --- a/adm/shop_admin/orderprintresult.php +++ b/adm/shop_admin/orderprintresult.php @@ -289,15 +289,22 @@ if (mysql_num_rows($result) == 0) $cnt = $sub_tot_qty = $sub_tot_price = 0; while ($row2 = sql_fetch_array($res2)) { - if($row2['io_type']) + if($row2['io_type']) { + $it_price = $row2['io_price']; $row2_tot_price = $row2['io_price'] * $row2['ct_qty']; - else + } else { + $it_price = $row2['ct_price'] + $row2['io_price']; $row2_tot_price = ($row2['ct_price'] + $row2['io_price']) * $row2['ct_qty']; + } $sub_tot_qty += $row2['ct_qty']; $sub_tot_price += $row2_tot_price; $it_name = stripslashes($row2['it_name']); - $it_name = "$it_name ({$row2['ct_option']})"; + $price_plus = ''; + if($row2['io_price'] >= 0) + $price_plus = '+'; + + $it_name = "$it_name ({$row2['ct_option']} ".$price_plus.display_price($row2['io_price']).")"; $ct_send_cost = ($row2['ct_send_cost'] ? '착불' : '선불'); $fontqty1 = $fontqty2 = ""; @@ -310,18 +317,35 @@ if (mysql_num_rows($result) == 0) ?> - + - + + + 배송비 + + 1 + + + + + 추가 배송비 + + 1 + + + 합계 - - + +