diff --git a/app/app/components/aggregate_data_point_component.rb b/app/app/components/aggregate_data_point_component.rb index c65ef8afd..0ec4c6227 100644 --- a/app/app/components/aggregate_data_point_component.rb +++ b/app/app/components/aggregate_data_point_component.rb @@ -126,4 +126,18 @@ def client_full_name(full_name) value: full_name } end + + def date_of_birth(date_of_birth) + { + label: I18n.t("cbv.submits.show.pdf.shared.date_of_birth"), + value: date_of_birth + } + end + + def ssn(ssn) + { + label: I18n.t("cbv.submits.show.pdf.caseworker.ssn"), + value: ssn + } + end end diff --git a/app/app/views/cbv/submits/show.pdf.erb b/app/app/views/cbv/submits/show.pdf.erb index 5b5c31ed1..d77bc6d7f 100644 --- a/app/app/views/cbv/submits/show.pdf.erb +++ b/app/app/views/cbv/submits/show.pdf.erb @@ -95,6 +95,7 @@ <% end %> <% if is_caseworker && summary[:has_identity_data] %> <%= table.with_data_point(:client_full_name, summary[:identity].full_name) %> + <%= table.with_data_point(:ssn, summary[:identity].ssn) %> <% end %> <% if summary[:has_employment_data] %> <% employment = summary[:employment] %> diff --git a/app/config/i18n-tasks.yml b/app/config/i18n-tasks.yml index 9d19f7673..11c7ae50b 100644 --- a/app/config/i18n-tasks.yml +++ b/app/config/i18n-tasks.yml @@ -133,6 +133,7 @@ ignore_missing: - "caseworker_mailer.summary_email.*" # Caseworker PDF strings that are only supported in English: - "cbv.submits.show.pdf.caseworker.*" + - "cbv.submits.show.pdf.shared.date_of_birth" # Currently awaiting translation: # - "example.strings.*" # Tag with ticket number that created or modified the string @@ -192,13 +193,13 @@ ignore_missing: - "cbv.applicant_informations.la_ldh.fields.case_number.help_text" - "cbv.applicant_informations.la_ldh.fields.case_number.prompt" - "cbv.applicant_informations.la_ldh.fields.case_number.super_one_html" - + # LA welcome (FFS-2688) - "pages.home.description_1" - "pages.home.description_2" - "pages.home.description_3" - "pages.home.header" - + # LA client_pdf (FFS-2688) - "aggregator_strings.payment_frequencies.annual" - "aggregator_strings.payment_frequencies.annually" diff --git a/app/config/locales/en.yml b/app/config/locales/en.yml index 89d2d866e..87c0f2546 100644 --- a/app/config/locales/en.yml +++ b/app/config/locales/en.yml @@ -420,6 +420,7 @@ en: how_to_header: 'How to use this report:' pay_period: Pay period (%{pay_frequency}) snap_agency_id: SNAP Agency ID + ssn: SSN staff_beacon_id_wel_id: Staff BEACON ID (WELID) client: address: Employer address @@ -433,6 +434,7 @@ en: shared: client_information: Client information confirmation_code: Confirmation code + date_of_birth: Date of Birth employment_information: Employment information pay_date: 'Pay Date: %{pay_date}' report_details: Report details diff --git a/app/spec/controllers/cbv/submits_controller_spec.rb b/app/spec/controllers/cbv/submits_controller_spec.rb index 476c5517c..57293446c 100644 --- a/app/spec/controllers/cbv/submits_controller_spec.rb +++ b/app/spec/controllers/cbv/submits_controller_spec.rb @@ -117,6 +117,7 @@ expect(pdf_text).to include(I18n.t("cbv.applicant_informations.sandbox.fields.middle_name.prompt")) expect(pdf_text).to include(I18n.t("cbv.applicant_informations.sandbox.fields.last_name.prompt")) expect(pdf_text).to include(I18n.t("cbv.applicant_informations.sandbox.fields.case_number.prompt")) + expect(pdf_text).to include(I18n.t("cbv.submits.show.pdf.caseworker.ssn")) end end @@ -134,6 +135,7 @@ expect(pdf_text).not_to include(I18n.t("cbv.applicant_informations.sandbox.fields.middle_name.prompt")) expect(pdf_text).not_to include(I18n.t("cbv.applicant_informations.sandbox.fields.last_name.prompt")) expect(pdf_text).not_to include(I18n.t("cbv.applicant_informations.sandbox.fields.case_number.prompt")) + expect(pdf_text).not_to include(I18n.t("cbv.submits.show.pdf.caseworker.ssn")) end end end