Merge branch 'master' of github.com:gnuboard/yc5
This commit is contained in:
@ -21,7 +21,7 @@ function get_order_status_sum($status)
|
|||||||
global $g5;
|
global $g5;
|
||||||
|
|
||||||
$sql = " select count(*) as cnt,
|
$sql = " select count(*) as cnt,
|
||||||
sum(od_cart_price + od_send_cost + od_send_cost2 - od_cancel_price - od_cart_coupon - od_coupon - od_send_coupon) as price
|
sum(od_cart_price + od_send_cost + od_send_cost2 - od_cancel_price) as price
|
||||||
from {$g5['g5_shop_order_table']}
|
from {$g5['g5_shop_order_table']}
|
||||||
where od_status = '$status' ";
|
where od_status = '$status' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
@ -63,7 +63,7 @@ function get_order_settle_sum($date)
|
|||||||
// 결제수단별 합계
|
// 결제수단별 합계
|
||||||
foreach($case as $val)
|
foreach($case as $val)
|
||||||
{
|
{
|
||||||
$sql = " select sum(od_cart_price + od_send_cost + od_send_cost2 - od_cart_coupon - od_coupon - od_send_coupon) as price,
|
$sql = " select sum(od_cart_price + od_send_cost + od_send_cost2 - od_receipt_point - od_cart_coupon - od_coupon - od_send_coupon) as price,
|
||||||
count(*) as cnt
|
count(*) as cnt
|
||||||
from {$g5['g5_shop_order_table']}
|
from {$g5['g5_shop_order_table']}
|
||||||
where SUBSTRING(od_time, 1, 10) = '$date'
|
where SUBSTRING(od_time, 1, 10) = '$date'
|
||||||
|
|||||||
Reference in New Issue
Block a user