added Sale.revenue_by_date_and_vendor_id method, updated set_to_date helper function