From 31cf5dd4447bb92231a051237b9f23dac1d2dbb3 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 25 Nov 2021 00:55:19 +0800 Subject: [PATCH] add command for sending do to vt --- app/Console/Commands/EmailDoToVTCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/EmailDoToVTCommand.php b/app/Console/Commands/EmailDoToVTCommand.php index a67f1134..807f9ecc 100644 --- a/app/Console/Commands/EmailDoToVTCommand.php +++ b/app/Console/Commands/EmailDoToVTCommand.php @@ -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'; + } } }