fix bug with amount not matching

This commit is contained in:
omair saleh
2020-09-29 17:25:24 +08:00
parent 5ab859f804
commit f47349383f
+1 -1
View File
@@ -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.' '.abs($total-$booking->bia)
'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total.' '.abs($total-$booking->bia) < PHP_FLOAT_EPSILON
], 400);
}