Pdf naming

This commit is contained in:
Martin Lensment 2015-04-22 10:07:59 +03:00
parent c2b449ea22
commit 2bc55e423c
2 changed files with 6 additions and 1 deletions

View file

@ -25,6 +25,11 @@ class Invoice < ActiveRecord::Base
I18n.t('invoice_no', no: id)
end
def number
# TODO: Real invoice numbers here
id
end
def seller_address
[seller_street, seller_city, seller_state, seller_zip].reject(&:blank?).compact.join(', ')
end