From 2c9fdcd79ed2de5c8782251d7e6b638d965e4c9f Mon Sep 17 00:00:00 2001 From: Julius Date: Wed, 30 Jan 2013 19:46:18 +0100 Subject: [PATCH] Show customer number in fax pdf --- app/documents/order_fax.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/documents/order_fax.rb b/app/documents/order_fax.rb index 3630546c..5dd4bfee 100644 --- a/app/documents/order_fax.rb +++ b/app/documents/order_fax.rb @@ -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 \ No newline at end of file +end