diff --git a/routes/web.php b/routes/web.php index 46196c14..1bcce7f9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -380,9 +380,9 @@ Route::get('/payments/manual', function(){ }); Route::get('/1688/fix', function(){ - Booking::where('service_id', 4)->where('status', 2)->whereHas('transactions', function($query){ + dd(Booking::where('service_id', 4)->where('status', 2)->whereHas('transactions', function($query){ return $query->where('type', TransactionType::PURCHASE_ORDER); - })->get(); + })->get()); // $purchaseOrderDocuments = \App\Models\Document::where('document_type', DocumentType::ECOMMERCE_PURCHASE_ORDER)->get(); // // foreach($purchaseOrderDocuments as $document){