From 07d3b82805e01b3f792ed178558e65d0674f0bc1 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Thu, 21 Mar 2019 11:33:19 +0800 Subject: [PATCH] large changes --- .../Modules/ControllersLogic/Dashboard/CbmReportLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/ControllersLogic/Dashboard/CbmReportLogic.php b/app/Classes/Modules/ControllersLogic/Dashboard/CbmReportLogic.php index c9af59f..f597f30 100644 --- a/app/Classes/Modules/ControllersLogic/Dashboard/CbmReportLogic.php +++ b/app/Classes/Modules/ControllersLogic/Dashboard/CbmReportLogic.php @@ -22,7 +22,7 @@ class CbmReportLogic } public function execute() { - $excludedOrders = Order::withTrashed()->where('company_id', 349)->with->pluck('id')->toArray(); + $excludedOrders = Order::where('company_id', 349)->withTrashed()->with->pluck('id')->toArray(); $excludedPackingLists = PackingList::whereIn('order_id', $excludedOrders)->pluck('id')->toArray(); $cbm = $this->repository->selectRaw('created_at, ((((width/100) * (length/100) * (height/100))) * quantity) as cbm')->whereYear('created_at', '=', Carbon::now()->year)->whereMonth('created_at', '=', Carbon::now()->month)->whereNotIn('list_id', $excludedPackingLists)->orderBy('created_at')->get();