From a9ef1269c309f0322bf61defb2094dc1e54e61d0 Mon Sep 17 00:00:00 2001 From: jitendra Date: Tue, 27 Nov 2018 10:53:47 +0530 Subject: [PATCH] Dashboard progress issues fixed --- .../Admin/src/Http/Controllers/DashboardController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/Webkul/Admin/src/Http/Controllers/DashboardController.php b/packages/Webkul/Admin/src/Http/Controllers/DashboardController.php index 8e7ad4477..cc533cad0 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/DashboardController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/DashboardController.php @@ -294,9 +294,9 @@ class DashboardController extends Controller $this->endDate = Carbon::now(); $this->lastStartDate = clone $this->startDate; - $this->lastEndDate = clone $this->endDate; + $this->lastEndDate = clone $this->startDate; - $this->lastStartDate->subDays($this->lastStartDate->diffInDays($this->lastEndDate)); - $this->lastEndDate->subDays($this->lastStartDate->diffInDays($this->lastEndDate)); + $this->lastStartDate->subDays($this->startDate->diffInDays($this->endDate)); + // $this->lastEndDate->subDays($this->lastStartDate->diffInDays($this->lastEndDate)); } } \ No newline at end of file