add service_charge to bookings

This commit is contained in:
Edmond Teh
2020-09-23 22:09:36 +08:00
parent dfe55cc6f9
commit 810084609b
2 changed files with 34 additions and 2 deletions
+2 -2
View File
@@ -216,9 +216,9 @@ 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->amount.'. Your Invoice amount is '.$total
'message' => 'Booking amount expected is '.$booking->bia.'. Your Invoice amount is '.$total
], 400);
}