added self.revenue_by_date_and_vendor_id(date) for Sale class