diff --git a/app/Http/Controllers/Exports/ExportCustomersToExcelController.php b/app/Http/Controllers/Exports/ExportCustomersToExcelController.php
index 80701563..d4e050b5 100644
--- a/app/Http/Controllers/Exports/ExportCustomersToExcelController.php
+++ b/app/Http/Controllers/Exports/ExportCustomersToExcelController.php
@@ -16,4 +16,4 @@ class ExportCustomersToExcelController
$request->headers->set('Authorization', 'Bearer '.$token);
return $exportsCustomers->download('customer-latest-order-date.csv', Excel::CSV, ['Content-Type' => 'text/csv']);
}
-}
\ No newline at end of file
+}
diff --git a/routes/web.php b/routes/web.php
index 4183c484..20ab0df6 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -183,22 +183,7 @@ Route::get('/debug', function (){
});
Route::get('/yd', function (){
- FetchOrdersFromYDPortalJob::dispatch();
+ (App()->make(FetchOrderListsFromYdPortalProcessor::class))->execute();;
});
-Route::get('/min_cbm', function (){
- $companies = CompanyModule::where('type', \App\Classes\ValueObjects\Constants\BusinessType::IMPORTER)->whereHas('orders', function ($query){
- return $query->whereHas('packingLists')->whereDoesntHave('packingLists', function($query){
- return $query->whereHas('packages', function($query){
- return $query->selectRaw('sum((width/100) * (height/100) * (length/100) * quantity) as cbm')->where('type', \App\Classes\ValueObjects\Constants\PackingListType::SHIPPING_PACKING_LIST)->where('status', '!=', 5)->having('cbm', '>', 0.3);
- });
- });
- })->limit(1)->get();
-
- $i = 0;
- foreach ($companies as $company) {
- $marking = $company->inviters()->withPivot('invitee_reference')->first()->pivot->invitee_reference;
- echo ''.$i++.'. '.$marking.'
';
- }
-});
-Route::get('/export/customer-latest-order-date/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@export');
\ No newline at end of file
+Route::get('/export/customer-latest-order-date/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@export');