large changes

This commit is contained in:
Omair Saleh
2019-03-21 11:39:43 +08:00
parent 07d3b82805
commit 2b991e0990
@@ -23,6 +23,7 @@ class CbmReportLogic
public function execute() {
$excludedOrders = Order::where('company_id', 349)->withTrashed()->with->pluck('id')->toArray();
dd($excludedOrders);
$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();