Skip to content

Commit

Permalink
Merge pull request #6353 from espoon-voltti/application-without-agree…
Browse files Browse the repository at this point in the history
…ing-guardians-requires-checking

Hakemus on tarkistettava jos huoltajat eivät ole sopineet hakemisesta yhdessä
  • Loading branch information
Joosakur authored Feb 13, 2025
2 parents 29d527f + 8ffe5d7 commit 376a2ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ beforeEach(async () => {
familyWithRestrictedDetailsGuardian.guardian,
familyWithRestrictedDetailsGuardian.otherGuardian,
'DAYCARE',
'NOT_AGREED'
'AGREED'
),
id: fromUuid<ApplicationId>('6a9b1b1e-3fdf-11eb-b378-0242ac130002')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ describe('Application transitions', () => {
familyWithRestrictedDetailsGuardian.guardian,
familyWithRestrictedDetailsGuardian.otherGuardian,
'DAYCARE',
'NOT_AGREED'
'AGREED'
),
id: fromUuid<ApplicationId>('6a9b1b1e-3fdf-11eb-b378-0242ac130002')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,8 @@ fun Database.Transaction.resetCheckedByAdminAndConfidentiality(
form.child.assistanceNeeded ||
form.child.allergies.isNotBlank() ||
form.child.diet.isNotBlank() ||
form.otherInfo.isNotBlank()
form.otherInfo.isNotBlank() ||
form.secondGuardian?.agreementStatus == OtherGuardianAgreementStatus.NOT_AGREED

execute {
sql(
Expand Down

0 comments on commit 376a2ec

Please sign in to comment.