fix 1688 xpo

This commit is contained in:
Omair Saleh
2022-09-27 11:42:58 +08:00
parent ddeba0e3ce
commit 82b09c25e2
+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)->where('created_at', '>=', Carbon::now()->subDay());
return $query->where('type', TransactionType::PURCHASE_ORDER)->where('bill_no', 'like', 'XPO-%');
})->get();
dd($bookings->pluck('created_at'));