show accident-approve-invoice

This commit is contained in:
edmondlang
2023-10-12 13:06:51 +08:00
parent 9a0073e906
commit 979b8b2ef9
+8
View File
@@ -1222,4 +1222,12 @@ Route::get('/wallets/active', function(){
echo '</tr>'; echo '</tr>';
} }
echo '</table>'; echo '</table>';
});
Route::get('/accident-approve-invoice', function(){
$invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->whereDate('updated_at', '2023-10-12')->get();
foreach ($invoices as $invoice) {
$orderMarking = $invoice->owner->owner->reference;
echo '<a href="'.route('order.v2.show', $orderMarking).'" target="_blank">'.$orderMarking.'</a><br>';
}
}); });