To support situations where capacity sales is required only in one direction (inbound/outbound) and disallowed in the other direction, added new choices for Route.capacity_sales:
3: Capacity sales required for outbound trips (direction_id0)
4: Capacity sales required for inbound trips (direction_id1)
For routes having one of these exactly one departure with the correct direction must be selected when creating a booking.
This PR contains also another minor booking creation request validation fix.
To support situations where capacity sales is required only in one direction (inbound/outbound) and disallowed in the other direction, added new choices for
Route.capacity_sales
:3
: Capacity sales required for outbound trips (direction_id
0
)4
: Capacity sales required for inbound trips (direction_id
1
)For routes having one of these exactly one departure with the correct direction must be selected when creating a booking.
This PR contains also another minor booking creation request validation fix.