i have to figure out payroll. employees are supposed to work a certain amount of hours on a given day. Mon 9-5, Tues 10-1, etc.
if they worked more or less, i have to adjust the pay.
i have a table of the hours they are supposed to work each day
the table looks like this:
employee Mon-in Mon-out Tues-In Tues-Out .....
my timsheets look like this:
employee day1-in Day1-out Day2-in day2-out ....
the problem is that if an employee is here on monday, absent tuesday and here on wednesday then monday is day1 and wed is day2.
is there a way that i can link the 2 tables? or move the day into the correct columns so that the 2 tables match?
if they worked more or less, i have to adjust the pay.
i have a table of the hours they are supposed to work each day
the table looks like this:
employee Mon-in Mon-out Tues-In Tues-Out .....
my timsheets look like this:
employee day1-in Day1-out Day2-in day2-out ....
the problem is that if an employee is here on monday, absent tuesday and here on wednesday then monday is day1 and wed is day2.
is there a way that i can link the 2 tables? or move the day into the correct columns so that the 2 tables match?