mirror of
https://github.com/internetee/registry.git
synced 2025-08-14 21:43:50 +02:00
fix invoice description
This commit is contained in:
parent
1357e17a47
commit
52cf53343c
3 changed files with 13 additions and 11 deletions
|
@ -112,10 +112,6 @@ class Invoice < ActiveRecord::Base
|
|||
kit.to_pdf
|
||||
end
|
||||
|
||||
def description
|
||||
"Order nr. #{number}"
|
||||
end
|
||||
|
||||
def pdf_name
|
||||
"invoice-#{number}.pdf"
|
||||
end
|
||||
|
|
|
@ -25,9 +25,12 @@
|
|||
%dt= t(:payment_term)
|
||||
%dd= t(@invoice.payment_term)
|
||||
|
||||
%dt= t(:"invoice no")
|
||||
%dd= @invoice.number
|
||||
|
||||
- if @invoice.description.present?
|
||||
%dt= t(:description)
|
||||
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
||||
%dd= "#{t('invoice_no', no: @invoice.number)}#{@invoice.description}"
|
||||
%dd=@invoice.description
|
||||
|
||||
%dt= t(:reference_no)
|
||||
%dd= @invoice.reference_no
|
||||
|
|
|
@ -175,9 +175,12 @@
|
|||
%dt= t(:payment_term)
|
||||
%dd= t(@invoice.payment_term)
|
||||
|
||||
%dt= t(:"invoice no")
|
||||
%dd= @invoice.number
|
||||
|
||||
- if @invoice.description.present?
|
||||
%dt= t(:description)
|
||||
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
||||
%dd= "#{t('invoice_no', no: @invoice.number)}#{@invoice.description}"
|
||||
%dd=@invoice.description
|
||||
|
||||
%dt= t(:reference_no)
|
||||
%dd= @invoice.reference_no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue