modified Sale.revenue_by_vendor_id to set vendor id keys as integers instead of strings
corrected Sale.revenue_by_vendor_id to set revenue to amount, not date (wrong array index)