Changes between Version 3 and Version 4 of ManageTripUseCase


Ignore:
Timestamp:
01/13/25 16:26:51 (42 hours ago)
Author:
221514
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ManageTripUseCase

    v3 v4  
    77 3. The transport organizer selects the ‘From destination’ and enters a location.
    88 4. The transport organizer selects the ‘To destination’ and enters a location.
    9  5. (Optional) The transport organizer selects a date range in which their trips were completed. By default, all trips with an **UPCOMING** status are displayed.
     9 5. (Optional) The transport organizer selects a date range to filter their trips. By default, all trips with a **NOT_STARTED** status are displayed.
     10 6. (Optional) The transport organizer selects the status to filter their trips. By default, all trips with an **NOT_STARTED** status are displayed.
    1011
    1112{{{#!sql
     
    2930JOIN location as lt on r.to_location_id = lt.location_id
    3031JOIN trip_stops as stop on lf.location_id = stop.location_id
    31 WHERE status = 'NOT_STARTED'
    32 AND date > {date_after} AND date < {date_before} -- Optional
     32WHERE ({selected_status} IS NULL OR tick.status = {selected_status})
     33AND ({before_date} IS NULL OR trip.date < {before_date})
     34AND ({after_date} IS NULL OR trip.date > {after_date})
    3335ORDER BY date, stop_time;
    3436}}}