mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
test sending booking do to email
This commit is contained in:
+3
-1
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\InvoiceController;
|
||||
use App\InvoiceStatuses;
|
||||
use Carbon\Carbon;
|
||||
|
||||
@@ -56,7 +57,8 @@ Route::get('/approved-today', function(){
|
||||
$bookings[] = $approved->invoice->booking->id;
|
||||
}
|
||||
foreach ($bookings as $id) {
|
||||
$do = $this->generateSupplierDo($id);
|
||||
$invoiceContoller = new InvoiceController();
|
||||
$do = $invoiceContoller->generateSupplierDo($id);
|
||||
$zip->addFromString('do_12_11_2020_'.$id, $do);
|
||||
}
|
||||
$zip->getStream('test.zip');
|
||||
|
||||
Reference in New Issue
Block a user