Changes between Version 3 and Version 4 of ViewMyTripsUseCase


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ViewMyTripsUseCase

    v3 v4  
    3232JOIN trip_stops as stop on lf.location_id = stop.location_id
    3333WHERE tick.account_id = {account_lists_id}
    34 AND status = {selected_status} -- Optional
    35 AND (trip.date < {before_date} AND trip.date < {after_date}) -- Optional
    36 AND t_o.company_name = {selected_company_name}; -- Optional
     34AND ({selected_status} IS NULL OR tick.status = {selected_status})
     35AND ({before_date} IS NULL OR trip.date < {before_date})
     36AND ({after_date} IS NULL OR trip.date > {after_date})
     37AND ({selected_company_name} IS NULL OR t_o.company_name = {selected_company_name});
    3738}}}
    3839