From e02766347be63e236fcecfcf7267de6db87013fe Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 26 Feb 2022 16:56:37 +0800 Subject: [PATCH] send missing dos to vt --- app/Console/Commands/EmailDoToVTCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/EmailDoToVTCommand.php b/app/Console/Commands/EmailDoToVTCommand.php index 1c90c1d2..2e95a906 100644 --- a/app/Console/Commands/EmailDoToVTCommand.php +++ b/app/Console/Commands/EmailDoToVTCommand.php @@ -62,7 +62,7 @@ class EmailDoToVTCommand extends Command $zip = new ZipArchive(); if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) { - $bookings = \App\Models\Booking::where('status', ApprovalStatus::COMPLETED)->whereDate('updated_at', '>=', $startDate) + $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::PAYMENT)->whereHas('transactions', function ($query){ return $query->where('issuer', 2);