Show customer number in fax pdf

This commit is contained in:
Julius 2013-01-30 19:46:18 +01:00
parent 11aeed2f54
commit 2c9fdcd79e

View file

@ -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