feat: additional confirmation cycle and status for groups inquiries
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user