mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
fix bug with amount not matching
This commit is contained in:
@@ -99,7 +99,7 @@ class InvoiceController extends Controller
|
||||
$adjustment = $request->adjustment;
|
||||
$billing_charges = $booking->billing_charge;
|
||||
$total = $subtotal + $adjustment + $billing_charges;
|
||||
|
||||
echo dd(abs($total-$booking->bia));
|
||||
if (abs($total-$booking->bia) < PHP_FLOAT_EPSILON) {
|
||||
return response()->json([
|
||||
'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total
|
||||
|
||||
Reference in New Issue
Block a user