Fixes for sales by cat report, Closes #6606