diff --git a/routes/web.php b/routes/web.php index 3106e6c5..686931af 100644 --- a/routes/web.php +++ b/routes/web.php @@ -703,9 +703,9 @@ Route::get('/billplz/fix', function(){ }); -Route::get('/invoices/fix', function(){ +Route::get('/invoices/fix/{company_module_id}', function($company_module_id) { - $orders = Order::whereIn('company_module_id', [294, 2703])->get(); + $orders = Order::whereIn('company_module_id', json_decode($company_module_id))->get(); foreach ($orders as $order){ $invoices = $order->transactions()->where('transactions.type', TransactionType::SHIPPING_INVOICE)->get();