mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
fix bug with amount not matching
This commit is contained in:
@@ -102,9 +102,12 @@ class InvoiceController extends Controller
|
||||
|
||||
if (abs($total-$booking->bia) > 0.01) {
|
||||
return response()->json([
|
||||
'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total.' '.PHP_FLOAT_EPSILON
|
||||
'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();
|
||||
|
||||
Reference in New Issue
Block a user