In order for this to work, three things need to be configured:
1) The user's initial Time left MUST NOT be NULL. You can take off the
requirement by removing the timeleft check in the proc. The
2) The servie's AccountTypes must have a rate with the Overtime checked.
3) The StandardTime/StandardInterval is used to determine what the
full time is.
-------------------------------------------------------------
Use Emerald
GO
Create Proc Update_TimeLeft AS
Update sa
Set sa.TimeLeft = (rt.StandardHours * rt.StandardInterval) / 60