dashboard dats issue

This commit is contained in:
rahul shukla 2019-09-17 16:56:45 +05:30
parent b13a82efaf
commit 8429a5fccf
1 changed files with 2 additions and 1 deletions

View File

@ -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');
});
}