fixed some (maybe not all) bugs with sales/order reports page