fix 1688 xpo

This commit is contained in:
Omair Saleh
2022-09-27 11:36:33 +08:00
parent e833206600
commit b0afd8592a
+4 -2
View File
@@ -380,9 +380,11 @@ Route::get('/payments/manual', function(){
});
Route::get('/1688/fix', function(){
dd(Booking::where('service_id', 4)->where('status', 2)->whereHas('transactions', function($query){
$bookings = Booking::where('service_id', 4)->where('status', 2)->whereHas('transactions', function($query){
return $query->where('type', TransactionType::PURCHASE_ORDER);
})->get());
})->get();
dd($bookings->pluck('created_at'));
// $purchaseOrderDocuments = \App\Models\Document::where('document_type', DocumentType::ECOMMERCE_PURCHASE_ORDER)->get();
//
// foreach($purchaseOrderDocuments as $document){