internetee-registry/app/models/invoice_item.rb
2015-08-13 15:45:38 +03:00

8 lines
148 B
Ruby

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