Help! Please! I am working with a restaurant POS system using crystal reports. I am trying to modify the employee hours report and need some help. It’s a very simple report that searches for each employee, then reports their hours . It sorts by date and job codes for a given time period. I rearranged the sort function so that it would list the hours according to job codes, instead of dates. Now, I need it to give me a “total hours” for each job code. Something like this:
Joe Smith
Job Code: Dish
6/13 1 PM 4:30 PM 3h 30 min
6/14 2 PM 6:00 PM 4h 00 min
total hours: 7h 30 min (this is what I’m missing)
Job Code: Bus
6/13 5 PM 10:00 PM 5h 00 min
6/14 7 PM 11:30 PM 4h 30 min
total hours: 9h 30 min
The report already gives me the hours breakdown and sorts it by job code, but I need it to tell me total hours for each job code. If you PM me, I can send you screen shots of the report and the print out so it might make more sense.
Thanks!!
After considering the evidence here and here, it looks like you just need to shuffle some elements around in the sections.
It looks like Group1 is the employee and Group2 is the job code (I have no idea what Group3 is, but it shouldn’t really matter)… but according to the designer screenshot, your Group2 footer is suppressed or conditionally suppressed. That’s at least partially the problem since that is where the summary you’re after (The
{@SumHoursJobCode}formula) needs to go.It looks like
{@SumHoursJobCode}is working as expected since it gives you the correct sum for the last jobcode group, it just needs to be moved into the Group2 footer and the footer needs to be displayed.