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 50c3dc7 commit 89101e7Copy full SHA for 89101e7
functions/views/dashboard-chart.php
@@ -5,7 +5,7 @@ function daily_chart(){
5
global $db;
6
$sql = "SELECT DATE(created_at) AS date, SUM(total) AS total_sales
7
FROM transactions
8
- WHERE status >= 1
+ WHERE status > 0 AND status < 4
9
GROUP BY DATE(created_at)
10
ORDER BY DATE(created_at)";
11
@@ -43,7 +43,7 @@ function month_chart(){
43
44
$sql = "SELECT YEAR(created_at) AS year, MONTH(created_at) AS month, SUM(total) AS total_sales
45
46
47
GROUP BY YEAR(created_at), MONTH(created_at)
48
ORDER BY YEAR(created_at), MONTH(created_at)";
49
0 commit comments