include approved po's in the system

This commit is contained in:
omair saleh
2020-12-03 17:07:19 +08:00
parent 48e7354b38
commit 29a1f90b8e
+1 -1
View File
@@ -29,7 +29,7 @@ Route::get('/po-approval', function(){
echo "<a target='_blank' href='https://exchange.cief-malaysia.com/booking/".$invoice->invoice->booking->id."/upload-invoice'>".$invoice->invoice->booking->id."</a><br>";
}
$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 "<h1>Total Po Approved: <b>".$total."</b></h1>";
foreach ($newCompletedInvoices as $invoice){