send missing dos to vt

This commit is contained in:
omair saleh
2022-02-26 16:49:15 +08:00
parent 8f735c8c89
commit 5ca20f1b54
+1 -1
View File
@@ -61,7 +61,7 @@ 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);