Skip to content

Commit

Permalink
fix: change check on amount paid
Browse files Browse the repository at this point in the history
  • Loading branch information
kpturner committed Sep 19, 2024
1 parent ee676d7 commit 266e3d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/private/BookController.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,10 @@ angular.module("EventsModule").controller("BookController", [
// errors.push("Email confirmation ()")
//}
}
if ($scope.bookingForm.paid && $scope.bookingForm.amountPaid == 0) {
if ($scope.bookingForm.paid && !$scope.bookingForm.amountPaid) {
complete = false;
errors.push(
"If you flag the booking as paid you must enter the amount paid also"
"If you flag the booking as fully paid you must enter the amount paid also"
);
}
if ($scope.bookingForm.places > 1) {
Expand Down

0 comments on commit 266e3d8

Please sign in to comment.