I’m trying to build a model driven app for my company to track service ticket, time and expenses.
I have several tables, but here are they tables I’m currently focusing on building out: Technician, Time, Service Ticket.
On the Technician table I have a column titled Technician (Tech’s Name) and a column titled Bill Rate (Currency Field). I have a table titled Holidays, which has a Holidays column that consists of dates that are holidays like: 1/2/2023, 2/20/2023, 5/29/2023, 6/19/2023, 7/4/2023, 9/4/2023, 10/9/2023, 11/10/2023, 11/23/2023 and 12/25/2023.
On the Time table, which is linked to the Service Ticket table via lookup, there is a Date column. How do I compare the date selected on the Time table to the dates on the Holidays table and if there is a match returned the selected Technician’s Bill Rate from the Technician table x 1.3 (effectively adding 30% to the Bill Rate).
I also need to do this if the date selected on the Time table is on a Saturday or Sunday.
Otherwise, I would like to just return the normal Bill Rate from the Technician’s table for the selected Technician.