From 876dd5931dfde1d7428bcfd121182c9096cfa629 Mon Sep 17 00:00:00 2001 From: Joe Haig Date: Thu, 13 Jun 2024 16:44:55 +0100 Subject: [PATCH] Display ASN from MAAT --- app/services/maat_service.rb | 3 ++- .../shared/_claim_defendant_details_with_maat.html.haml | 6 +++--- config/locales/en.yml | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/services/maat_service.rb b/app/services/maat_service.rb index 8ac57929a5..bd3db05341 100644 --- a/app/services/maat_service.rb +++ b/app/services/maat_service.rb @@ -11,7 +11,8 @@ def call { case_number: data['caseId'], - representation_order_date: data['crownRepOrderDate'] + representation_order_date: data['crownRepOrderDate'], + asn: data['arrestSummonsNo'] } end end diff --git a/app/views/shared/_claim_defendant_details_with_maat.html.haml b/app/views/shared/_claim_defendant_details_with_maat.html.haml index 04e16950b5..8b0fcf95f4 100644 --- a/app/views/shared/_claim_defendant_details_with_maat.html.haml +++ b/app/views/shared/_claim_defendant_details_with_maat.html.haml @@ -19,7 +19,7 @@ = govuk_table_thead_collection [t('.date'), t('external_users.claims.defendants.representation_order_fields.maat_reference_number'), - t('.case_number_from_maat')] + t('.asn')] = govuk_table_tbody do - defendant.representation_orders.each do | representation_order | @@ -30,8 +30,8 @@ = govuk_table_td('data-label': t('external_users.claims.defendants.representation_order_fields.maat_reference_number')) do = representation_order.maat_reference - = govuk_table_td('data-label': t('.case_number_from_maat')) do - = representation_order.maat_details[:case_number] + = govuk_table_td('data-label': t('.asn')) do + = representation_order.maat_details[:asn] - else = govuk_inset_text(t('.no_reporder')) diff --git a/config/locales/en.yml b/config/locales/en.yml index 1fcbf77caf..fbecafae6e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2039,6 +2039,7 @@ en: defendant: Defendant %{context} no_reporder: No representation orders have been supplied for this defendant. case_number_from_maat: Case number from MAAT (experimental) + asn: ASN (experimental) evidence_checklist: caption: 'Supporting evidence checklist' summary: 'Note: To best navigate this table, step down the second column'