G
Guest
Here's my table structure:
tblTask:
TaskID (pk)
TaskName
LabourPrice
tblTransaction:
TaskID (fk)
TransactionID (pk)
Authorised (where authorised is the amount paid)
EmployeeID (fk, related to Employees table with usual info)
TransactionDate
TransactionTypeID (fk, related to table with different types, Daywork, Price
Work etc)
Every task has a price. Employees book against a task. So if "Paint House"
is £100, and the employee completed 50% of the work, he will get paid £50.
Sometimes, if an employee is working on daywork, the amount paid will go over
the labour price.
However, all this is irrelevant, in as much as the amount the employee is to
be paid is stored in [Authorised]. All the transactions relating to how much
an employee is to be paid is stored in tblTransaction and always relates back
to a specific task. Now for the question.
How could I handle holidays?
I'm able to generate a timesheet showing what the employee is due to be
paid, based on the entries in tblTrnascation, but am not sure how to show
that a days holiday was taken. It would be easy if any weekday not worked
counted as a holiday, but this is not the case.
Would a seperate table for booking holidays be the way to go? How would I
then link this table (with the HolidayDate field), to the TransactionDate
field?
Any ideas for other ways to handle it would be appreciated.
Thanks,
Dave
tblTask:
TaskID (pk)
TaskName
LabourPrice
tblTransaction:
TaskID (fk)
TransactionID (pk)
Authorised (where authorised is the amount paid)
EmployeeID (fk, related to Employees table with usual info)
TransactionDate
TransactionTypeID (fk, related to table with different types, Daywork, Price
Work etc)
Every task has a price. Employees book against a task. So if "Paint House"
is £100, and the employee completed 50% of the work, he will get paid £50.
Sometimes, if an employee is working on daywork, the amount paid will go over
the labour price.
However, all this is irrelevant, in as much as the amount the employee is to
be paid is stored in [Authorised]. All the transactions relating to how much
an employee is to be paid is stored in tblTransaction and always relates back
to a specific task. Now for the question.
How could I handle holidays?
I'm able to generate a timesheet showing what the employee is due to be
paid, based on the entries in tblTrnascation, but am not sure how to show
that a days holiday was taken. It would be easy if any weekday not worked
counted as a holiday, but this is not the case.
Would a seperate table for booking holidays be the way to go? How would I
then link this table (with the HolidayDate field), to the TransactionDate
field?
Any ideas for other ways to handle it would be appreciated.
Thanks,
Dave