class InvoiceItem < ActiveRecord::Base include Versions belongs_to :invoice def item_sum_without_vat (amount * price).round(2) end end