Skip to content

Commit

Permalink
Display ASN from MAAT
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmhaig committed Jul 10, 2024
1 parent 083745f commit 876dd59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/services/maat_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions app/views/shared/_claim_defendant_details_with_maat.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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'))
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 876dd59

Please sign in to comment.