답변 2개
채택된 답변
+20 포인트
/adm/shop_admin/sale1month.php 파일에서 아래 쿼리문 수정해보세요.
$sql = " select od_id,
SUBSTRING(od_time,1,7) as od_date,
od_send_cost,
od_settle_case,
od_receipt_price,
od_receipt_point,
od_cart_price,
od_cancel_price,
od_misu,
(od_cart_price + od_send_cost + od_send_cost2) as orderprice,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g5['g5_shop_order_table']}
where SUBSTRING(od_time,1,7) between '$fr_month' and '$to_month'
order by od_time desc ";
$result = sql_query($sql);
(od_cart_price + od_send_cost + od_send_cost2) as orderprice, 이 부분이 주문 합계입니다.
od_cart_price as orderprice, 로 바꾸면 배송비 빼고 나오겠죠.
사족이지만 배송비는 매출에 포함시켜야 되지 않을까요?
(주문시 입금 받은 배송비는 매출, 배송시 택배사에 주는 배송비는 매입(지출)으로 잡아서 계산)
$sql = " select od_id,
SUBSTRING(od_time,1,7) as od_date,
od_send_cost,
od_settle_case,
od_receipt_price,
od_receipt_point,
od_cart_price,
od_cancel_price,
od_misu,
(od_cart_price + od_send_cost + od_send_cost2) as orderprice,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g5['g5_shop_order_table']}
where SUBSTRING(od_time,1,7) between '$fr_month' and '$to_month'
order by od_time desc ";
$result = sql_query($sql);
(od_cart_price + od_send_cost + od_send_cost2) as orderprice, 이 부분이 주문 합계입니다.
od_cart_price as orderprice, 로 바꾸면 배송비 빼고 나오겠죠.
사족이지만 배송비는 매출에 포함시켜야 되지 않을까요?
(주문시 입금 받은 배송비는 매출, 배송시 택배사에 주는 배송비는 매입(지출)으로 잡아서 계산)
답변을 작성하려면 로그인이 필요합니다.