mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-23 22:44:03 +00:00
send missing dos to vt
This commit is contained in:
@@ -61,12 +61,13 @@ class EmailDoToVTCommand extends Command
|
||||
|
||||
$zip = new ZipArchive();
|
||||
if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {
|
||||
Log::info('success');
|
||||
|
||||
$bookings = \App\Models\Booking::where('status', ApprovalStatus::COMPLETED)->whereDate('updated_at', '>=', $startDate)->whereDate('updated_at', '<=', $endDate)
|
||||
->whereHas('transactions', function ($query){
|
||||
return $query->where('type', TransactionType::BILL)->where('issuer', 2);
|
||||
})->get();
|
||||
|
||||
Log::info(count($bookings));
|
||||
if(!count($bookings)){ return; }
|
||||
|
||||
foreach ($bookings as $booking) {
|
||||
|
||||
Reference in New Issue
Block a user