send missing dos to vt

This commit is contained in:
omair saleh
2022-02-26 16:52:41 +08:00
parent 280066fcb4
commit 961b6019da
+1 -1
View File
@@ -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)->whereDate('updated_at', '<=', $endDate)
$bookings = \App\Models\Booking::where('status', ApprovalStatus::COMPLETED)->whereBetween('updated_at', [$startDate, $endDate])
->whereHas('transactions', function ($query){
return $query->where('type', TransactionType::BILL)->where('issuer', 2);
})->get();