mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-29 01:13:59 +00:00
add command for sending do to vt
This commit is contained in:
@@ -60,12 +60,11 @@ class EmailDoToVTCommand extends Command
|
||||
{
|
||||
|
||||
Auth::login(User::findOrFail(1));
|
||||
chdir(storage_path());
|
||||
$zip_file = 'do_from_11_nov_to_23_nov.zip';
|
||||
$attachment = storage_path().'/'.$zip_file;
|
||||
$zip = new ZipArchive();
|
||||
if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE)) {
|
||||
|
||||
chmod($attachment, 0777);
|
||||
$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', 2);
|
||||
|
||||
Reference in New Issue
Block a user