generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PI-2578 Only apply probation reset suspension date for determinate ca…
…ses (#4301) Also use the event.first_release_date if no ACR is present.
- Loading branch information
1 parent
7fc52c5
commit 9a810c9
Showing
9 changed files
with
179 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 15 additions & 7 deletions
22
...nd-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/SentenceGenerator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 9 additions & 13 deletions
22
...n/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/custody/date/CustodyDateType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
package uk.gov.justice.digital.hmpps.integrations.delius.custody.date | ||
|
||
import uk.gov.justice.digital.hmpps.integrations.prison.SentenceDetail | ||
import java.time.LocalDate | ||
import kotlin.reflect.KProperty | ||
|
||
enum class CustodyDateType(val code: String, val field: KProperty<LocalDate?>) { | ||
LICENCE_EXPIRY_DATE("LED", SentenceDetail::licenceExpiryDate), | ||
AUTOMATIC_CONDITIONAL_RELEASE_DATE("ACR", SentenceDetail::conditionalReleaseDate), | ||
PAROLE_ELIGIBILITY_DATE("PED", SentenceDetail::paroleEligibilityDate), | ||
SENTENCE_EXPIRY_DATE("SED", SentenceDetail::sentenceExpiryDate), | ||
EXPECTED_RELEASE_DATE("EXP", SentenceDetail::confirmedReleaseDate), | ||
HDC_EXPECTED_DATE("HDE", SentenceDetail::homeDetentionCurfewEligibilityDate), | ||
POST_SENTENCE_SUPERVISION_END_DATE("PSSED", SentenceDetail::postSentenceSupervisionEndDate), | ||
SUSPENSION_DATE_IF_RESET("PR1", SentenceDetail::suspensionDateIfReset) | ||
enum class CustodyDateType(val code: String) { | ||
LICENCE_EXPIRY_DATE("LED"), | ||
AUTOMATIC_CONDITIONAL_RELEASE_DATE("ACR"), | ||
PAROLE_ELIGIBILITY_DATE("PED"), | ||
SENTENCE_EXPIRY_DATE("SED"), | ||
EXPECTED_RELEASE_DATE("EXP"), | ||
HDC_EXPECTED_DATE("HDE"), | ||
POST_SENTENCE_SUPERVISION_END_DATE("PSSED"), | ||
SUSPENSION_DATE_IF_RESET("PR1") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.