merged revenue and vendor_totals methods into revenue(date=nil)