dubug completed bookings with unapproved po's

This commit is contained in:
omair saleh
2021-09-24 12:41:32 +08:00
parent 409fdff062
commit f476f52d4d
-17
View File
@@ -68,22 +68,5 @@ Route::get('/transfer/merge/{marking}', function ($marking) {
return view('pages.booking_merge', ['marking' => $marking]);
})->name('booking.merge');
Route::get('/mail', function () {
echo route('login');
});
Route::get('/test', function () {
Auth::login(User::findOrFail(3));
$bookings = \App\Models\Booking::where('status', '=', \App\Classes\ValueObjects\Constants\ApprovalStatus::COMPLETED)->whereHas('transactions', function (Builder $query){
$query->where('type', '=', \App\Classes\ValueObjects\Constants\TransactionType::PURCHASE_ORDER)->where('status', '!=', \App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED);
})->get();
dd($bookings);
});
Route::get('/export/customers/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@export');
Route::get('/export/transactions/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@transactions');