From 1f092016d3edf71011125d54171d75d32a041461 Mon Sep 17 00:00:00 2001 From: SodhiA1 <38086281+SodhiA1@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:34:46 -0800 Subject: [PATCH] condition fix --- .../ca/bc/gov/educ/api/institute/service/v1/SchoolService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/institute/service/v1/SchoolService.java b/api/src/main/java/ca/bc/gov/educ/api/institute/service/v1/SchoolService.java index f3008485..292ee25c 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/institute/service/v1/SchoolService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/institute/service/v1/SchoolService.java @@ -452,7 +452,7 @@ private SchoolEntity moveSchoolHelper(School school, School existingSchool) { school.getSchoolNumber(), UUID.fromString(school.getDistrictId())); if(school.getSchoolCategoryCode().equals(existingSchool.getSchoolCategoryCode()) && - (school.getSchoolCategoryCode().equals(Constants.INDEPENDENT) || school.getSchoolCategoryCode().equals(Constants.NONINDEPENDENT)) && schools.isEmpty()) { + !school.getSchoolCategoryCode().equals(Constants.INDEPENDENT) && !school.getSchoolCategoryCode().equals(Constants.NONINDEPENDENT) && schools.isEmpty()) { schoolEntity.setSchoolNumber(school.getSchoolNumber()); } else { schoolEntity.setSchoolNumber(