icefoganalytics / travel-authorization

0 stars 0 forks source link

Travel estimates - Admin updates #227

Open dpdavids opened 1 month ago

dpdavids commented 1 month ago

Relates to: (https://github.com/ytgov/travel-authorization/issues/82)

Context

Is your feature request related to a problem? Please describe. Currently in the Travel Rates Admin screens (https://travel-auth-dev.ynet.gov.yk.ca/TravelRatesPage/administration/travel-rates/edit?perDiemsClaimType=incidentals). The travel allowances of Aircraft Allowance per segment, hotel allowance per night, and maximum aircraft allowance are not actually allowances. image

These are infact only used for estimating purposes and are not allowance at all.
Aircraft Allowance per segment - this is actually direct flight estimates and included when the user selects Vancouver, Edmonton, Calgary. Hotel Allowance per night - this is the number used when estimating the cost of a hotel Maximum aircraft allowance - this is meant for estimates outside of the direct flight.

Describe the solution you'd like These items should be moved to a separate admin table call Travel estimates. For flights it might be worth creating a table that allows a admin users to select a place and enter a cost. eg. whitehorse to vancouver $350 eg whitehorse to edmonton, calgary, yellowknife $450 whitehorse to ottawa $700

This may be overkill for now as more data is entered into the tool we might be able to utilize some analytics to get better estimated costs.

Describe alternatives you've considered At minimum move these into their own admin screen Travel Estimate and change the names from Aircraft Allowance per segment to Estimated flight cost between Whitehorse and Vancouver, Edmonton or Calgary Maximum Aircraft Allowance to Estimated Flight cost (not Vancouver, Edmonton or Calgary) Hotel Allowance per Night to Estimated Hotel Cost.

Additional context