Skip to content

Commit

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

0 comments on commit ee676d7

Please sign in to comment.