Revert "Merge branch 'fixinvoice' into 'master'"

This reverts merge request !157
This commit is contained in:
omair saleh
2020-09-29 04:41:35 +00:00
parent 9d96042f80
commit 8adc211174
+2 -2
View File
@@ -100,7 +100,7 @@ class InvoiceController extends Controller
$billing_charges = $booking->billing_charge; $billing_charges = $booking->billing_charge;
$total = $subtotal + $adjustment + $billing_charges; $total = $subtotal + $adjustment + $billing_charges;
if (abs($total-$booking->bia) < PHP_FLOAT_EPSILON) { if ($total !== $booking->bia) {
return response()->json([ 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
], 400); ], 400);
@@ -227,7 +227,7 @@ class InvoiceController extends Controller
$billing_charges = $booking->billing_charge; $billing_charges = $booking->billing_charge;
$total = $subtotal + $adjustment + $billing_charges; $total = $subtotal + $adjustment + $billing_charges;
if (abs($total-$booking->bia) < PHP_FLOAT_EPSILON) { if ($total !== $booking->bia) {
return response()->json([ 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
], 400); ], 400);