Skip to content

Commit

Permalink
pfs-220 url from case ref back to sirius #minor (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholassully authored Jan 9, 2025
1 parent d7a9ef5 commit cb8d74e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion finance-hub/internal/api/get_person_details_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestGetPersonDetails(t *testing.T) {
"id": 2,
"firstname": "Finance",
"surname": "Person",
"courtRef": "12345678"
"caseRecNumber": "12345678"
}`

r := io.NopCloser(bytes.NewReader([]byte(json)))
Expand Down
2 changes: 1 addition & 1 deletion finance-hub/web/template/layout/person-info.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="govuk-grid-column-full">
<a href="javascript: history.go(-1)" class="govuk-back-link">Back</a>
<h1 data-cy="person-name" class="govuk-heading-m govuk-!-margin-bottom-2">{{ .FirstName }} {{ .Surname }}</h1>
<span data-cy="court-ref" class="govuk-caption-m govuk-!-margin-bottom-1">Court reference: {{ .CourtRef }}</span>
<span data-cy="court-ref" class="govuk-caption-m govuk-!-margin-bottom-1">Court reference: <a href="{{ sirius (printf "/supervision/#/clients/%s" .ClientId) }}" class="govuk-link">{{ .CourtRef }}</a></span>
<span data-cy="total-outstanding-balance" class="govuk-caption-m govuk-!-margin-bottom-1">Total outstanding balance: £{{ .OutstandingBalance }}</span>
<span data-cy="total-credit-balance" class="govuk-caption-m govuk-!-margin-bottom-1">Total credit balance: £{{ .CreditBalance }}</span>
<span data-cy="payment-method" class="govuk-caption-m govuk-!-margin-bottom-1">Payment method: {{ .PaymentMethod }}</span>
Expand Down
22 changes: 11 additions & 11 deletions json-server/config/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,67 +31,67 @@
"id": 1,
"firstname": "Finance",
"surname": "Person",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 2,
"firstname": "Ian",
"surname": "Finance",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 3,
"firstname": "Mandy",
"surname": "Moneybags",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 4,
"firstname": "Bobby",
"surname": "Cash",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 5,
"firstname": "Felicity",
"surname": "Fat-Cat",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 6,
"firstname": "Conrad",
"surname": "Credit",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 7,
"firstname": "Sue",
"surname": "Pervision",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 8,
"firstname": "Fiona",
"surname": "Reductions",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 9,
"firstname": "Debby",
"surname": "Dollar",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 10,
"firstname": "Billy",
"surname": "Bank",
"courtRef": "12345678"
"caseRecNumber": "12345678"
},
{
"id": 99,
"firstname": "Nelly",
"surname": "Nullman",
"courtRef": "12345678"
"caseRecNumber": "12345678"
}
],
"tasks": {
Expand Down
2 changes: 1 addition & 1 deletion shared/person.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ type Person struct {
ID int `json:"id"`
FirstName string `json:"firstname"`
Surname string `json:"surname"`
CourtRef string `json:"courtRef"`
CourtRef string `json:"caseRecNumber"`
}

0 comments on commit cb8d74e

Please sign in to comment.