auto generate invoices

This commit is contained in:
Omair Saleh
2023-02-17 13:48:26 +08:00
parent 6d1153298c
commit 5335b8affb
+1 -1
View File
@@ -766,7 +766,7 @@ Route::get('/generate/invoices', function(){
Route::get('/invoices/approve', function(Request $request){
// whereDoesntHave
$invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->get();
$invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->where('status', ApprovalStatus::PENDING_SUBMISSION)->get();
dd($invoices);
foreach ($invoices as $invoice) {
$order = $invoice->owner->owner;