From 9acf219b90dc8f1532a47603af9b0f70d5482ead Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Mon, 12 May 2025 15:44:16 +0100 Subject: [PATCH] fix: remove unnecessary condition for created_at in voucher query to improve data accuracy --- system/controllers/plan.php | 1 - 1 file changed, 1 deletion(-) diff --git a/system/controllers/plan.php b/system/controllers/plan.php index cd7744e7..d801cf25 100644 --- a/system/controllers/plan.php +++ b/system/controllers/plan.php @@ -787,7 +787,6 @@ switch ($action) { "CASE WHEN DATE(created_at) = CURDATE() THEN 'Today' ELSE DATE(created_at) END", 'created_datetime' ) - ->where_not_equal('created_at', '0000-00-00 00:00:00') ->select_expr('COUNT(*)', 'voucher_count') ->group_by('created_datetime') ->order_by_desc('created_datetime')