crystalnewbie
MIS
CR 8.5 / SQL Server 2000
I'm having problems with suppressing sections via the section report.
Basically have a report that should show employees that are minors and are out of compliance based on labor laws. My detail section is hidden and i'm using it to sum up the time worked and showing the sum in the group footer. I'm also doing a maximum on the clock out time to determine their last recorded clock out.
My report looks like below without applying any of the labor logic yet.
Name Age WorkDate Clock-out Time #hrs Worked
John Doe 17 Mon, 7/5/04 7/1/04 4:00pm 6
John Doe 17 Tue, 7/6/04 7/2/04 8:00pm 4
John Doe 17 Wed, 7/7/04 7/3/04 11:00pm 4
I need the report to look like below based on the rule of no minor can work after 10pm OR not have worked more than 5 hrs during Monday thru Thursday.
Name Age WorkDate Clock-out Time #hrs Worked
John Doe 17 Mon, 7/5/04 7/1/04 4:00pm 6
John Doe 17 Wed, 7/7/04 7/3/04 11:00pm 4
But am getting the following results after I try to suppress section with the formula below:
DayOfWeek ({VP_TOTALS.APPLYDATE}) in [2,3,4,5] and
({@HrsWorked} < 5 or time(Maximum ({VP_TOTALS.CLOCKOUT}, {VP_TOTALS.WORKDATE}, "daily")) <= ctime("10:00 PM"))
Name Age WorkDate Clock-out Time #hrs Worked
John Doe 17 Wed, 7/7/04 7/3/04 11:00pm 4
It doesn't look like it's doing an OR. How should I change the condition so it does?
TIA
I'm having problems with suppressing sections via the section report.
Basically have a report that should show employees that are minors and are out of compliance based on labor laws. My detail section is hidden and i'm using it to sum up the time worked and showing the sum in the group footer. I'm also doing a maximum on the clock out time to determine their last recorded clock out.
My report looks like below without applying any of the labor logic yet.
Name Age WorkDate Clock-out Time #hrs Worked
John Doe 17 Mon, 7/5/04 7/1/04 4:00pm 6
John Doe 17 Tue, 7/6/04 7/2/04 8:00pm 4
John Doe 17 Wed, 7/7/04 7/3/04 11:00pm 4
I need the report to look like below based on the rule of no minor can work after 10pm OR not have worked more than 5 hrs during Monday thru Thursday.
Name Age WorkDate Clock-out Time #hrs Worked
John Doe 17 Mon, 7/5/04 7/1/04 4:00pm 6
John Doe 17 Wed, 7/7/04 7/3/04 11:00pm 4
But am getting the following results after I try to suppress section with the formula below:
DayOfWeek ({VP_TOTALS.APPLYDATE}) in [2,3,4,5] and
({@HrsWorked} < 5 or time(Maximum ({VP_TOTALS.CLOCKOUT}, {VP_TOTALS.WORKDATE}, "daily")) <= ctime("10:00 PM"))
Name Age WorkDate Clock-out Time #hrs Worked
John Doe 17 Wed, 7/7/04 7/3/04 11:00pm 4
It doesn't look like it's doing an OR. How should I change the condition so it does?
TIA