Improve invoice view

This commit is contained in:
Martin Lensment 2015-04-09 17:55:27 +03:00
parent 43e111add0
commit 6a47f38e80
14 changed files with 167 additions and 44 deletions

View file

@ -1,3 +1,7 @@
class InvoiceItem < ActiveRecord::Base
belongs_to :invoice
def item_total_without_vat
amount * price
end
end