Skip to content

Commit

Permalink
MAN-28 - update LicenceConditionNote.createdBy
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Oct 16, 2024
1 parent b1106e9 commit 25840f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ class SentenceIntegrationTest {
LocalDate.now(),
listOf(
LicenceConditionNote(
"Comment added by CVL Service on 22/04/2024 at 10:00",
"Comment added by CVL Service",
"""
Licence Condition created automatically from the Create and Vary a licence system of
Allow person(s) as designated by your supervising officer to install an electronic monitoring tag on you and access to install any associated equipment in your property, and for the purpose of ensuring that equipment is functioning correctly. You must not damage or tamper with these devices and ensure that the tag is charged, and report to your supervising officer and the EM provider immediately if the tag or the associated equipment are not working correctly. This will be for the purpose of monitoring your alcohol abstinence licence condition(s) unless otherwise authorised by your supervising officer.
""".trimIndent(),
false
),
LicenceConditionNote(
"Comment added by Joe Root on 23/04/2024 at 13:45",
"Comment added by Joe Root",
"""
You must not drink any alcohol until Wednesday 7th August 2024 unless your
probation officer says you can. You will need to wear an electronic tag all the time so
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class SentenceService(


LicenceConditionNote(
addedBy?.removeSuffix(System.lineSeparator()),
addedBy?.removeSuffix(System.lineSeparator())?.reversed()?.substring(23)?.reversed(),
noteText.removeSuffix(System.lineSeparator()),
note.let { n ->
when {
Expand Down

0 comments on commit 25840f4

Please sign in to comment.