fix bug with amount not matching

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