add command for sending do to vt

This commit is contained in:
omair saleh
2021-11-25 00:55:19 +08:00
parent 1f6dd52116
commit 31cf5dd444
+3 -1
View File
@@ -65,7 +65,7 @@ class EmailDoToVTCommand extends Command
$bookings = \App\Models\Booking::where('status', ApprovalStatus::COMPLETED)->whereDate('updated_at', '>=', Carbon::parse('12-11-2021'))->whereDate('updated_at', '<=', Carbon::parse('23-11-2021'))
->whereHas('transactions', function ($query){
return $query->where('type', TransactionType::BILL)->where('issuer', 5);
return $query->where('type', TransactionType::BILL)->where('issuer', 2);
})->get();
dd(count($bookings));
if(!$bookings){ return; }
@@ -90,6 +90,8 @@ dd(count($bookings));
File::delete($attachment);
echo 'success';
}
}
}