update regenerate invoice by web route

This commit is contained in:
edmondlang
2023-02-21 16:07:32 +08:00
parent c85b603b81
commit c16a49d55c
+2 -2
View File
@@ -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();