- Local time
- Today, 05:24
- Joined
- Oct 29, 2018
- Messages
- 22,810
Hi. What I am saying is if you store a calculated value, like HoursWorked and later use it to determine how much to pay an employee, you run the risk of incorrectly paying them, if the data in HoursWorked is inaccurate, which could happen if either or both the ClockIn or ClockOut data was later changed/updated, without also updating the HoursWorked value. But by just "calculating" this value on the fly (instead of storing it, then you can be sure your employee is paid correctly every time.I'm storing em in the table and I'm quoting ur words " especially if there are financial consequences for using them "
At the end of the month, there's a report that calculates total hours of lates per employee !! that's why I'm storing em !!
Please tell me your concerns in details
In other words, if you're using something like this:
HoursWorked * PayRate = EmployeePay
I am saying this is better and more accurate:
(ClockOut-ClockIn) * PayRate = EmployeePay
Does that make sense?