mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
8 lines
148 B
Ruby
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
|