Skip to content

Commit efb37cd

Browse files
committed
fix: Power Shop 一頁商店報表當日金額、訂單筆數顯示錯誤問題
1 parent d5f1d5b commit efb37cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

legacy/inc/classes/Order.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ function sum_order( $a, $b ) {
122122
function get_sum_by_date( $date_no, $args ) {
123123
// date_default_timezone_set('Asia/Taipei');
124124
unset($args['paginate']);
125+
$args['limit'] = -1;
125126

126127
if ($date_no === -1) {
127-
128-
$sum_args = array_merge($args, [ 'limit' => -1 ]);
128+
$sum_args = $args;
129129
} else {
130130
$sum_args = array_merge($args, [ 'date_created' => date('Y-m-d', strtotime('-' . $date_no . ' day')) . '...' . date('Y-m-d') ]);
131131
}

0 commit comments

Comments
 (0)