fix: exclude cancelled participants' services from price breakdown
This commit is contained in:
1 parent
553ec901f3
commit
849a19b67a
4 files changed
+74
-4
No files matched your search
@@ -288,7 +288,8 @@ class BookingConfigurator
|
||||
int $participantIndex,
|
||||
ParticipantDto $participant,
|
||||
): bool {
|
||||
if (null === $participant->dateOfBirth) {
|
||||
// A cancelled participant's services are no longer billed, so nothing may be added for them
|
||||
if (true === $participant->isCanceled() || null === $participant->dateOfBirth) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user