Fixed long standing bug in General Sales report.

The query that was pulling transactions IDs to calculate member
discounts was grouping by emp_no, register_no, and trans_no.  In order
to accomodate multi-day General Sales reports, however, it needed to
group by DAY as well. Fixed with this commit.