mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
update regenerate invoice by web route
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user