From 4368de155812841f706845898fb76275b2aef80d Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sat, 29 Dec 2018 13:32:00 -0500 Subject: [PATCH] Convert reprint receipt --- app/Http/Controllers/PagesController.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 08f7287..bf48215 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -250,12 +250,9 @@ class PagesController extends Controller return view('reprint_receipt_form'); } else { $bidnum=$reprint_receipt_req->reprintbiddernum; - $checkout_id = DB::select("SELECT - checkout_id - FROM checkout - WHERE bidder_num = $bidnum - "); - return redirect()->route('receiptpdf', ['checkout_id' => $checkout_id['0']->checkout_id]); + $checkout_id = Checkout::where('bidder_num', '=', $bidnum) + ->get(); + return redirect()->route('receiptpdf', ['checkout_id' => $checkout_id->checkout_id]); } }