From 29a1f90b8e75f0339f6836f95be6450daa09b44a Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 3 Dec 2020 17:07:19 +0800 Subject: [PATCH] include approved po's in the system --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 79d4f53a..8a3e3f46 100644 --- a/routes/web.php +++ b/routes/web.php @@ -29,7 +29,7 @@ Route::get('/po-approval', function(){ echo "".$invoice->invoice->booking->id."
"; } $oldCompletedInvoices = Invoice::where('invoice_path', '!=', '')->orWhereNotNull('invoice_path')->get(); - $newCompletedInvoices = Invoice::whereIn('invoice_id', $approvedInvoices)->get(); + $newCompletedInvoices = Invoice::whereIn('id', $approvedInvoices)->get(); $total = count($oldCompletedInvoices) + count($newCompletedInvoices); echo "

Total Po Approved: ".$total."

"; foreach ($newCompletedInvoices as $invoice){