Crystal 2011- SQL 2008 R2
I have detailed payroll records with time in and time out for each employee. I need to be able to total up hours by Reg Time and OT by week by quarter. The problem is my week starts Sunday's at 7:00am, so if an employee punches in Saturday night at midnight and punches out at 9:00am on Sunday morning, then that time needs to be broken up into 2 pay-periods - 6 hours for one and 2 hours for the next. I know how to get the time worked for each detailed record. I am just having a problem on how to group into weeks. Right now I have the records sorted by Last Name, Employee ID and time in. I am prompting for beginning date and ending date for selection. Any help would be greatly appreciated. Thanks.
I have detailed payroll records with time in and time out for each employee. I need to be able to total up hours by Reg Time and OT by week by quarter. The problem is my week starts Sunday's at 7:00am, so if an employee punches in Saturday night at midnight and punches out at 9:00am on Sunday morning, then that time needs to be broken up into 2 pay-periods - 6 hours for one and 2 hours for the next. I know how to get the time worked for each detailed record. I am just having a problem on how to group into weeks. Right now I have the records sorted by Last Name, Employee ID and time in. I am prompting for beginning date and ending date for selection. Any help would be greatly appreciated. Thanks.