Skip to content

Commit

Permalink
Merge pull request #997 from bcgov/feature/careerPrograms
Browse files Browse the repository at this point in the history
EDX-1235 career program mapping
  • Loading branch information
SodhiA1 authored Aug 25, 2023
2 parents 0410aef + 6d12b46 commit 7022ad3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default {
};
},
computed: {
...mapState(useSdcCollectionStore, ['schoolFundingCodesMap', 'enrolledProgramCodesMap']),
...mapState(useSdcCollectionStore, ['schoolFundingCodesMap', 'enrolledProgramCodesMap', 'careerProgramCodesMap']),
},
created() {
useSdcCollectionStore().getCodes().then(() => {
Expand Down Expand Up @@ -224,6 +224,8 @@ export default {
mapStudentData(student) {
student.mappedFrenchEnrolledProgram = this.enrolledProgramMapping(student, enrolledProgram.FRENCH_ENROLLED_PROGRAM_CODES) ;
student.careerProgram = this.enrolledProgramMapping(student, enrolledProgram.CAREER_ENROLLED_PROGRAM_CODES) ;
student.careerProgramCode = this.careerProgramCodesMap.get(student.careerProgramCode) !== undefined ? this.careerProgramCodesMap.get(student.careerProgramCode)?.careerProgramCode + '-' + this.careerProgramCodesMap.get(student.careerProgramCode)?.description : null;
student.mappedSchoolFunding = this.schoolFundingCodesMap.get(student.schoolFundingCode) !== undefined ? this.schoolFundingCodesMap.get(student.schoolFundingCode)?.schoolFundingCode + '-' + this.schoolFundingCodesMap.get(student.schoolFundingCode)?.description : null;
let noOfCourses = student.numberOfCourses;
if(noOfCourses && noOfCourses.length === 4) {
Expand Down

0 comments on commit 7022ad3

Please sign in to comment.