its' not quite doing correctly. It's not tallying correctly, not bringing in all the amounts to the total.
I think the issue is we want to show the total of all the order types first not after them., it's not natural way. When I put group1 in header1 and group2 in group 2 footer, it's correct amounts for the order types. so maybe i can just do a separate total for the dept.
Maybe I need 'whileprinting records' which i have not done before.