Skip to content

Commit

Permalink
PI-1690 updated field for application submitted (#2764)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj authored Nov 29, 2023
1 parent ef035b0 commit 5448799
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object EventDetailsGenerator {
eventNumber = "23",
arrivalOn = LocalDate.now(),
departureOn = LocalDate.now(),
submittedAt = ZonedDateTime.now().minusDays(2),
applicationSubmittedOn = ZonedDateTime.now().minusDays(2),
sentenceTypeString = SentenceType.StandardDeterminate.value,
releaseTypeString = ReleaseType.Licence.value,
situationString = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"surname": "Worker",
"username": "KeyWorkerNPS"
},
"submittedAt": "2022-11-28T14:51:30",
"applicationSubmittedOn": "2022-11-28T14:51:30",
"sentenceType": "nonStatutory",
"releaseType": "not_applicable"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ data class BookingMade(
val premises: Premises,
val arrivalOn: LocalDate,
val departureOn: LocalDate,
val submittedAt: ZonedDateTime?,
val applicationSubmittedOn: ZonedDateTime?,
@JsonAlias("sentenceType")
private val sentenceTypeString: String?,
@JsonAlias("releaseType")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class ReferralService(
personId = person.id,
eventId = event.id,
approvedPremisesId = ap.id,
referralDate = submittedAt?.toLocalDate() ?: bookingMadeAt.toLocalDate(),
referralDate = applicationSubmittedOn?.toLocalDate() ?: bookingMadeAt.toLocalDate(),
referralDateTypeId = checkNotNull(
referenceDataRepository.findByCodeAndDatasetCode(
"CRC",
Expand Down

0 comments on commit 5448799

Please sign in to comment.