Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time Card Processing
Message
From
30/05/2008 20:21:26
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01320618
Message ID:
01320737
Views:
18
Something like this?
* actual_IN, actual_OUT  -- actual punched times.
* sched_IN, sched_OUT    -- scheduled IN/OUT times.
* effective_IN, effective_OUT  -- effective IN/OUT for computation
* IN_round  -- maximum number of minutes for which an early IN punch
*              will still count as if it was punched on-time.
* IN_Grace  -- maximum number of minutes allowed for punching IN late
*              but still have it count as punched on-time.
* OUT_grace -- maximum number of minutes allowed for punching OUT early
*              but still have it count as punched on-time.
* OUT_round -- maximum number of minutes for which a late OUT punch
*              will still count as if it was on-time.
IF BETWEEN(actual_IN, (sched_IN-IN_round), (sched_IN+IN_grace)) THEN
    effective_IN = sched_IN
ELSE
    effective_IN = actual_IN
ENDIF
IF BETWEEN(actual_out, (sched_OUT-OUT_grace), (sched_OUT+OUT_round)) THEN
    effective_OUT = sched_OUT
ELSE
    effective_OUT = actual_OUT
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform