fix 1688 xpo

This commit is contained in:
Omair Saleh
2022-09-27 11:44:16 +08:00
parent 82b09c25e2
commit 973dd08fda
+2 -2
View File
@@ -382,9 +382,9 @@ 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('bill_no', 'like', 'XPO-%');
})->get();
});
dd($bookings->pluck('created_at'));
$bookings->dd();
// $purchaseOrderDocuments = \App\Models\Document::where('document_type', DocumentType::ECOMMERCE_PURCHASE_ORDER)->get();
//
// foreach($purchaseOrderDocuments as $document){