Show customer number in fax pdf
This commit is contained in:
parent
11aeed2f54
commit
2c9fdcd79e
1 changed files with 6 additions and 1 deletions
|
@ -19,6 +19,10 @@ class OrderFax < OrderPdf
|
||||||
text contact[:street], align: :right
|
text contact[:street], align: :right
|
||||||
move_down 5
|
move_down 5
|
||||||
text "#{contact[:zip_code]} #{contact[:city]}", align: :right
|
text "#{contact[:zip_code]} #{contact[:city]}", align: :right
|
||||||
|
move_down 5
|
||||||
|
if @order.supplier.customer_number != ''
|
||||||
|
text "Kundennummer: #{@order.supplier.customer_number}", align: :right
|
||||||
|
end
|
||||||
move_down 10
|
move_down 10
|
||||||
text contact[:phone], size: 9, align: :right
|
text contact[:phone], size: 9, align: :right
|
||||||
move_down 5
|
move_down 5
|
||||||
|
@ -34,6 +38,7 @@ class OrderFax < OrderPdf
|
||||||
text "Fax: " + @order.supplier.fax
|
text "Fax: " + @order.supplier.fax
|
||||||
end
|
end
|
||||||
|
|
||||||
|
move_down 5
|
||||||
text Date.today.strftime('%d.%m.%Y'), align: :right
|
text Date.today.strftime('%d.%m.%Y'), align: :right
|
||||||
|
|
||||||
move_down 10
|
move_down 10
|
||||||
|
@ -66,4 +71,4 @@ class OrderFax < OrderPdf
|
||||||
#align: {0 => :left}
|
#align: {0 => :left}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue