mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Improve invoicing views
This commit is contained in:
parent
d33d249e2d
commit
28d8aac65c
6 changed files with 34 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue