From 4d20d244dc745de873836d8d7fd90d0d58a4f548 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 17:36:46 +0800 Subject: [PATCH] fix bug with amount not matching --- app/Http/Controllers/InvoiceController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index 7e9360a4..3a7d8783 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -105,9 +105,6 @@ class InvoiceController extends Controller 'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total ], 400); } - return response()->json([ - 'message' => 'successful' - ], 400); // Write to database if does not exist $exist = Invoice::where('booking_id', $id)->first();