mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-21 13:34:15 +00:00
add command for sending do to vt
This commit is contained in:
@@ -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';
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user