added Sale.sales_by_vendor_id method