fix total equal bia

This commit is contained in:
omair saleh
2020-09-23 15:14:22 +08:00
parent a4d597f7f1
commit d23ccc6fa5
+1 -1
View File
@@ -95,7 +95,7 @@ class InvoiceController extends Controller
$total = array_reduce($subtotalArray, function ($v1, $v2) {
return $v1 + $v2;
});
if ($total !== $booking->amount) {
if ($total !== $booking->bia) {
return response()->json([
'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total
], 400);