mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
include approved po's in the system
This commit is contained in:
+1
-1
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user