diff --git a/routes/web.php b/routes/web.php index ae5fc51a..eea61379 100644 --- a/routes/web.php +++ b/routes/web.php @@ -23,7 +23,7 @@ Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('p Route::get('/po-approval', function(){ $approvedInvoices = InvoiceStatuses::where('status', 'approve')->distinct()->get(['invoice_id'])->pluck('invoice_id'); $pendingChangeInvoices = InvoiceStatuses::where('status', 'request_change')->distinct()->get(['invoice_id'])->pluck('invoice_id'); - $invoices = InvoiceStatuses::whereNotIn('invoice_id', $approvedInvoices)->whereNotIn($pendingChangeInvoices)->get(); + $invoices = InvoiceStatuses::whereNotIn('invoice_id', $approvedInvoices)->whereNotIn('invoice_id', $pendingChangeInvoices)->get(); echo "