Improve invoicing views

This commit is contained in:
Martin Lensment 2015-04-10 11:37:02 +03:00
parent d33d249e2d
commit 28d8aac65c
6 changed files with 34 additions and 15 deletions

View file

@ -12,6 +12,14 @@ class Invoice < ActiveRecord::Base
[buyer_street, buyer_city, buyer_state, buyer_zip].reject(&:blank?).compact.join(', ')
end
def seller_country
Country.new(seller_country_code)
end
def buyer_country
Country.new(buyer_country_code)
end
def items
invoice_items
end