We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5f1d5b commit efb37cdCopy full SHA for efb37cd
legacy/inc/classes/Order.php
@@ -122,10 +122,10 @@ function sum_order( $a, $b ) {
122
function get_sum_by_date( $date_no, $args ) {
123
// date_default_timezone_set('Asia/Taipei');
124
unset($args['paginate']);
125
+ $args['limit'] = -1;
126
127
if ($date_no === -1) {
-
128
- $sum_args = array_merge($args, [ 'limit' => -1 ]);
+ $sum_args = $args;
129
} else {
130
$sum_args = array_merge($args, [ 'date_created' => date('Y-m-d', strtotime('-' . $date_no . ' day')) . '...' . date('Y-m-d') ]);
131
}
0 commit comments