Ted Varnson
06-02-2006, 02:09 PM
I' creating a timecard, and I am at the point where I am coding the reports. So what I am trying to set up is for a list of all the payperiods Employee X has worked.
For example:
Each payperiod begins on Friday and ends on Thurday. So:
Employee X starts working on May 18 (a Thursday) and is still working in the present, so in theory the script would print the report like this:
05/12/06 - 05/18/06
05/19/06 - 05/25/06
05/26/06 - 06/01/06
06/02/06 - 06/08/06
Where every payperiod that has AT LEAST one day worked is displayed. (starts displaying upon first day of work and stops displaying when it reaches the current time. - ie: doesn't show every payperiod for '06 right off the bat)
The idea behind it of course is to lead to being able to click into a certain payperiod and see the individual days worked in order to make edits and so forth.
Any help is appreciated. :D
For example:
Each payperiod begins on Friday and ends on Thurday. So:
Employee X starts working on May 18 (a Thursday) and is still working in the present, so in theory the script would print the report like this:
05/12/06 - 05/18/06
05/19/06 - 05/25/06
05/26/06 - 06/01/06
06/02/06 - 06/08/06
Where every payperiod that has AT LEAST one day worked is displayed. (starts displaying upon first day of work and stops displaying when it reaches the current time. - ie: doesn't show every payperiod for '06 right off the bat)
The idea behind it of course is to lead to being able to click into a certain payperiod and see the individual days worked in order to make edits and so forth.
Any help is appreciated. :D