fix 1688 xpo

This commit is contained in:
Omair Saleh
2022-09-27 11:39:22 +08:00
parent b0afd8592a
commit 11477a16ab
+1 -1
View File
@@ -381,7 +381,7 @@ Route::get('/payments/manual', function(){
Route::get('/1688/fix', function(){
$bookings = Booking::where('service_id', 4)->where('status', 2)->whereHas('transactions', function($query){
return $query->where('type', TransactionType::PURCHASE_ORDER);
return $query->where('type', TransactionType::PURCHASE_ORDER)->where('created_at', '>=', Carbon\Carbon::now()->subDay());
})->get();
dd($bookings->pluck('created_at'));