feat: additional confirmation cycle and status for groups inquiries

This commit is contained in:
Björn Fromme
2026-08-18 12:48:17 +02:00
parent 5045846eed
commit 8dee65d0dc
28 changed files with 677 additions and 95 deletions
@@ -38,14 +38,18 @@ class AccommodationBookingFilterDto extends AbstractListFilterDto
/**
* The list as it presents itself to someone who has not filtered yet.
*
* The still-live statuses — drafts and open bookings, i.e. everything that may still need
* work — nothing whose stay is already over, and, for staff who are not group admins, only
* the bookings they are responsible for.
* The still-live statuses — drafts, open bookings and bookings awaiting validation, i.e.
* everything that may still need work — nothing whose stay is already over, and, for
* staff who are not group admins, only the bookings they are responsible for.
*/
public static function defaults(bool $seesAllBookings, ?User $currentUser): self
{
$filter = new self();
$filter->status = [AccommodationBookingStatus::Draft, AccommodationBookingStatus::Open];
$filter->status = [
AccommodationBookingStatus::Draft,
AccommodationBookingStatus::Open,
AccommodationBookingStatus::Received,
];
$filter->dateFrom = new \DateTimeImmutable('today');
if (!$seesAllBookings) {