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
move_down 5
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
text contact[:phone], size: 9, align: :right
move_down 5
@ -34,6 +38,7 @@ class OrderFax < OrderPdf
text "Fax: " + @order.supplier.fax
end
move_down 5
text Date.today.strftime('%d.%m.%Y'), align: :right
move_down 10
@ -66,4 +71,4 @@ class OrderFax < OrderPdf
#align: {0 => :left}
end
end
end