You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* MAN-317 - update rar day count
* MAN-317 - use disposal id to get rar instead of requirement id
* MAN-317 - use new query for rar calculation in overview page
* Formatting changes
---------
Co-authored-by: probation-integration-bot[bot] <177347787+probation-integration-bot[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/RequirementIntegrationTest.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -67,11 +67,11 @@ class RequirementIntegrationTest {
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/SentenceIntegrationTest.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -129,11 +129,11 @@ class SentenceIntegrationTest {
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/SentencesIntegrationTest.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ class SentencesIntegrationTest {
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/overview/Rar.kt
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/compliance/Nsi.kt
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/Contact.kt
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/Requirement.kt
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/RequirementService.kt
+13-7
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ class RequirementService(
27
27
}
28
28
29
29
fun RequirementDetails.toRequirementSingleNote(noteId:Int): Requirement {
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/SentenceService.kt
+4-4
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ class SentenceService(
143
143
fun Disposal.toMinimalOrder() =MinimalOrder(type.description, date, expectedEndDate())
144
144
145
145
fun RequirementDetails.toRequirement(): Requirement {
146
-
val rar = requirementService.getRar(id, code)
146
+
val rar = requirementService.getRar(disposalId, code)
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/test/kotlin/uk/gov/justice/digital/hmpps/api/controller/ComplianceControllerTest.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ internal class ComplianceControllerTest {
44
44
val mainOffence =Offence(code ="CD1", description ="Main Offence")
45
45
val order =Order(description ="Order", endDate =LocalDate.now(), length =1, startDate =LocalDate.now())
46
46
val breach =Breach(LocalDate.now(), "A Breach")
47
-
val rar =Rar(10, 5)
47
+
val rar =Rar(completed =10, scheduled =5, nsiCompleted =0)
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/test/kotlin/uk/gov/justice/digital/hmpps/service/ComplianceServiceTest.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ internal class ComplianceServiceTest {
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/test/kotlin/uk/gov/justice/digital/hmpps/service/OverviewServiceTest.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ internal class OverviewServiceTest {
Copy file name to clipboardExpand all lines: projects/manage-supervision-and-delius/src/test/kotlin/uk/gov/justice/digital/hmpps/service/SentenceServiceTest.kt
0 commit comments