use invoice.order for directo/banklink

This commit is contained in:
Georg Kahest 2016-08-31 15:47:22 +03:00
parent 52cf53343c
commit 145af2ac0f
3 changed files with 9 additions and 4 deletions

View file

@ -106,7 +106,12 @@ class Invoice < ActiveRecord::Base
def buyer_country
Country.new(buyer_country_code)
end
# order is used for directo/banklink description
def order
"Order nr. #{number}"
end
def pdf(html)
kit = PDFKit.new(html)
kit.to_pdf