|
|
@@ -260,7 +260,7 @@
|
|
|
SELECT IFNULL(SUM(IFNULL(total_offset_points,0)),0) FROM (SELECT
|
|
|
CASE
|
|
|
WHEN refund_type=1 THEN total_offset_points
|
|
|
- ELSE total_offset_points+ (freight_amount * 100)
|
|
|
+ ELSE total_offset_points
|
|
|
END AS total_offset_points
|
|
|
FROM tz_order_refund a
|
|
|
LEFT JOIN (SELECT SUM(offset_points) total_offset_points ,order_number
|