mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 20:34:08 +00:00
fix total equal bia
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user