From 8429a5fccfd258e17510644bcc55acc75e5dc763 Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Tue, 17 Sep 2019 16:56:45 +0530 Subject: [PATCH] dashboard dats issue --- .../Webkul/Admin/src/Http/Controllers/DashboardController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/Webkul/Admin/src/Http/Controllers/DashboardController.php b/packages/Webkul/Admin/src/Http/Controllers/DashboardController.php index 3be5ad0c8..fc62d6247 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/DashboardController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/DashboardController.php @@ -286,7 +286,8 @@ class DashboardController extends Controller private function getOrdersBetweenDate($start, $end) { return $this->order->scopeQuery(function ($query) use ($start, $end) { - return $query->where('orders.created_at', '>=', $start)->where('orders.created_at', '<=', $end); + return $query->where('orders.created_at', '>=', $start)->where('orders.created_at', '<=', $end) + ->where('orders.status', '<>', 'canceled'); }); }