bugfix for sales report, #27078, from #25459