From 146b662fc0f9b3fc635f555a8decc4167b444257 Mon Sep 17 00:00:00 2001 From: rollydream Date: Thu, 4 Apr 2013 11:39:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=20:=20#33=20=EC=9D=BC=EB=B3=84=20=EB=A7=A4=EC=B6=9C=ED=98=84?= =?UTF-8?q?=ED=99=A9=20=EC=9B=B9=ED=91=9C=EC=A4=80=20=EB=B0=8F=20=EC=8A=A4?= =?UTF-8?q?=ED=83=80=EC=9D=BC=201=EC=B0=A8=20=EC=9E=91=EC=97=85=20?= =?UTF-8?q?=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/sale1month.php | 2 +- adm/shop_admin/sale1today.php | 194 +++++++++++++++++++--------------- 2 files changed, 107 insertions(+), 89 deletions(-) diff --git a/adm/shop_admin/sale1month.php b/adm/shop_admin/sale1month.php index facbf224f..c953aa89c 100644 --- a/adm/shop_admin/sale1month.php +++ b/adm/shop_admin/sale1month.php @@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r"); $fr_date = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $fr_date); $to_date = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $to_date); -$g4['title'] = "$fr_month ~ $to_month 매출현황"; /*레이블 중복 인식과 페이지와의 연결 때문에 year로 바꿈 김혜련 2013-04-04*/ +$g4['title'] = "$fr_month ~ $to_month 매출현황"; /*레이블 중복 인식과 페이지와의 연결 때문에 month로 바꿈 김혜련 2013-04-04*/ include_once (G4_ADMIN_PATH.'/admin.head.php'); function print_line($save) diff --git a/adm/shop_admin/sale1today.php b/adm/shop_admin/sale1today.php index 5a784f6aa..94b8e4751 100644 --- a/adm/shop_admin/sale1today.php +++ b/adm/shop_admin/sale1today.php @@ -9,102 +9,120 @@ $date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $date); $g4['title'] = "$date 매출현황"; include_once (G4_ADMIN_PATH.'/admin.head.php'); ?> + - +
+

일별 매출현황

+ + + + + + + + + + + + + + + + + + + + + + + + + 0) + echo ''; -
주문번호주문자주문합계취소+DC무통장입금카드입금포인트입금입금취소미수금
- - - - - - - - - - - - - - 0) - echo "\n"; + // 장바구니 상태별 금액 + $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 /* 주문취소 */ + from {$g4['yc4_cart_table']} + where uq_id = '{$row['uq_id']}' "; + $row1 = sql_fetch($sql1); - // 장바구니 상태별 금액 - $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 /* 주문취소 */ - from {$g4['yc4_cart_table']} - where uq_id = '{$row['uq_id']}' "; - $row1 = sql_fetch($sql1); + if ($row['mb_id'] == '') { // 비회원일 경우는 주문자로 링크 + $href = ""; + } else { // 회원일 경우는 회원아이디로 링크 + $href = ""; + } - if ($row['mb_id'] == '') { // 비회원일 경우는 주문자로 링크 - $href = ""; - } else { // 회원일 경우는 회원아이디로 링크 - $href = ""; + $row1['orderamount'] += $row['od_send_cost']; + $misu = $row1['orderamount'] - $row1['ordercancel'] - $row['od_dc_amount'] - $row['receiptamount'] + $row['receiptcancel']; + + ?> + + + + + + + + + + + + '; + } + ?> + + + + + + + + + + + + + +
주문번호주문자주문합계취소+DC무통장입금카드입금포인트입금입금취소미수금
자료가 한건도 없습니다.
합 계
+
- echo " - - $row[od_id] - $href$row[od_name] - ".number_format($row1['orderamount'])." - ".number_format($row1['ordercancel'] + $row['od_dc_amount'])." - ".number_format($row['od_receipt_bank'])." - ".number_format($row['od_receipt_card'])." - ".number_format($row['od_receipt_point'])." - ".number_format($row['receiptcancel'])." - ".number_format($misu)." - \n"; - $tot['orderamount'] += $row1['orderamount']; - $tot['ordercancel'] += $row1['ordercancel']; - $tot['dc'] += $row['od_dc_amount']; - $tot['receipt_bank'] += $row['od_receipt_bank']; - $tot['receipt_card'] += $row['od_receipt_card']; - $tot['receipt_point'] += $row['od_receipt_point']; - $tot['receiptamount'] += $row['receiptamount']; - $tot['receiptcancel'] += $row['receiptcancel']; - $tot['misu'] += $misu; -} - -if ($i == 0) { - echo "자료가 한건도 없습니다."; -} -?> - - - 합 계 - - - - - - - - - -