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
|
kit.to_pdf
|
||||||
end
|
end
|
||||||
|
|
||||||
def description
|
|
||||||
"Order nr. #{number}"
|
|
||||||
end
|
|
||||||
|
|
||||||
def pdf_name
|
def pdf_name
|
||||||
"invoice-#{number}.pdf"
|
"invoice-#{number}.pdf"
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,9 +25,12 @@
|
||||||
%dt= t(:payment_term)
|
%dt= t(:payment_term)
|
||||||
%dd= t(@invoice.payment_term)
|
%dd= t(@invoice.payment_term)
|
||||||
|
|
||||||
%dt= t(:description)
|
%dt= t(:"invoice no")
|
||||||
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
%dd= @invoice.number
|
||||||
%dd= "#{t('invoice_no', no: @invoice.number)}#{@invoice.description}"
|
|
||||||
|
- if @invoice.description.present?
|
||||||
|
%dt= t(:description)
|
||||||
|
%dd=@invoice.description
|
||||||
|
|
||||||
%dt= t(:reference_no)
|
%dt= t(:reference_no)
|
||||||
%dd= @invoice.reference_no
|
%dd= @invoice.reference_no
|
||||||
|
|
|
@ -175,9 +175,12 @@
|
||||||
%dt= t(:payment_term)
|
%dt= t(:payment_term)
|
||||||
%dd= t(@invoice.payment_term)
|
%dd= t(@invoice.payment_term)
|
||||||
|
|
||||||
%dt= t(:description)
|
%dt= t(:"invoice no")
|
||||||
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
%dd= @invoice.number
|
||||||
%dd= "#{t('invoice_no', no: @invoice.number)}#{@invoice.description}"
|
|
||||||
|
- if @invoice.description.present?
|
||||||
|
%dt= t(:description)
|
||||||
|
%dd=@invoice.description
|
||||||
|
|
||||||
%dt= t(:reference_no)
|
%dt= t(:reference_no)
|
||||||
%dd= @invoice.reference_no
|
%dd= @invoice.reference_no
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue