From 31923e4fd50fb88f4b9399cca741c933e469fae2 Mon Sep 17 00:00:00 2001 From: Vasili Kachalko Date: Tue, 21 May 2024 10:08:22 +0200 Subject: [PATCH] add draft id to application pdfs --- app/pdf_generators/qae_pdf_forms/general/draw_elements.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/pdf_generators/qae_pdf_forms/general/draw_elements.rb b/app/pdf_generators/qae_pdf_forms/general/draw_elements.rb index e2ec2fc4f..de1f55763 100644 --- a/app/pdf_generators/qae_pdf_forms/general/draw_elements.rb +++ b/app/pdf_generators/qae_pdf_forms/general/draw_elements.rb @@ -89,7 +89,7 @@ def main_header render_logo move_down 8.mm indent 32.mm do - render_urn if form_answer.urn.present? && pdf_blank_mode.blank? + render_urn if pdf_blank_mode.blank? render_award_information render_company_name unless pdf_blank_mode.present? end @@ -172,7 +172,8 @@ def render_logo end def render_urn - text form_answer.urn, + identification = form_answer.urn.presence || "Draft ID: #{form_answer.id}" + text identification, header_text_properties end