fix bug with amount not matching

This commit is contained in:
omair saleh
2020-09-29 17:26:18 +08:00
parent f47349383f
commit d358960f76
+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) < PHP_FLOAT_EPSILON
'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total.' '.PHP_FLOAT_EPSILON
], 400);
}