From 5ab859f8042f14a3a62cbcbd77e73e6a06b6aef8 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 17:24:12 +0800 Subject: [PATCH] fix bug with amount not matching --- app/Http/Controllers/InvoiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index 141ad477..111c08aa 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -102,7 +102,7 @@ class InvoiceController extends Controller if (abs($total-$booking->bia) < PHP_FLOAT_EPSILON) { return response()->json([ - 'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total + 'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total.' '.abs($total-$booking->bia) ], 400); }