diff --git a/frontend/src/components/ccfriApplication/group/AddNewFees.vue b/frontend/src/components/ccfriApplication/group/AddNewFees.vue index 26c56616..e56df0ed 100644 --- a/frontend/src/components/ccfriApplication/group/AddNewFees.vue +++ b/frontend/src/components/ccfriApplication/group/AddNewFees.vue @@ -103,7 +103,7 @@ -
+
@@ -460,7 +460,7 @@ export default { ...mapState('navBar', ['navBarList','changeRequestId']), ...mapState('ccfriApp', ['CCFRIFacilityModel', 'ccfriChildCareTypes', 'loadedModel', 'ccfriId']), ...mapGetters('ccfriApp', ['getClosureDateLength']), - ...mapGetters('navBar', ['nextPath', 'previousPath', 'isChangeRequest', 'getNavByCCFRIId','isChangeRequest']), + ...mapGetters('navBar', ['nextPath', 'previousPath', 'getNavByCCFRIId','isChangeRequest']), ...mapState('reportChanges',['userProfileChangeRequests']), ...mapGetters('reportChanges',['changeRequestStatus']), @@ -565,9 +565,9 @@ export default { }, async next() { - this.rfi3percentCategories = await this.getCcfriOver3percent(); - console.log('rfi3percentCategories length ', this.rfi3percentCategories.length); - if (this.isRenewal) { + //do not call RFI fee caluclation on NEW PCF or CR NEW FAC + if (this.isRenewal && !this.isChangeRequest) { + console.log('calculating RFI'); this.rfi3percentCategories = await this.getCcfriOver3percent(); if (this.rfi3percentCategories.length > 0) { if (this.currentFacility.hasRfi) { @@ -584,7 +584,8 @@ export default { this.$router.push(this.nextPath); } } else { - //Not renewal. + console.log("RFI calulation not needed."); + //Not renewal or CR this.$router.push(this.nextPath); } }, diff --git a/frontend/src/components/ccofApplication/family/FamilyFunding.vue b/frontend/src/components/ccofApplication/family/FamilyFunding.vue index 647ade8f..5715c458 100644 --- a/frontend/src/components/ccofApplication/family/FamilyFunding.vue +++ b/frontend/src/components/ccofApplication/family/FamilyFunding.vue @@ -30,7 +30,7 @@ + v-model.number="model.maxWeeksPerYear" @input="convertBlankNumberToNull(model,'maxWeeksPerYear')" label="Maximum number of weeks per year you provide child care" /> @@ -95,22 +95,22 @@ - + - + @@ -138,7 +138,7 @@ - + @@ -186,11 +186,11 @@ + v-model.number="model.extendedChildCareSchoolAge4OrLess" @input="convertBlankNumberToNull(model,'extendedChildCareSchoolAge4OrLess')" :rules="rules.notRequired" label="Family Child Care (School Age / School Age Care on School Grounds)" /> + v-model.number="model.multiAgeCare4OrLess" @input="convertBlankNumberToNull(model,'multiAgeCare4OrLess')" :rules="rules.notRequired" label="Multi-Age Child Care" /> @@ -205,11 +205,11 @@ + v-model.number="model.extendedChildCareSchoolAge4OrMore" @input="convertBlankNumberToNull(model,'extendedChildCareSchoolAge4OrMore')" :rules="rules.notRequired" label="Family Child Care (School Age/ School Age Care on School Grounds)" /> + v-model.number="model.multiAgeCare4more" @input="convertBlankNumberToNull(model,'multiAgeCare4more')" :rules="rules.notRequired" label="Multi-Age Child Care" /> diff --git a/frontend/src/components/ccofApplication/family/FamilyOrganization.vue b/frontend/src/components/ccofApplication/family/FamilyOrganization.vue index cce57a1b..15e8086e 100644 --- a/frontend/src/components/ccofApplication/family/FamilyOrganization.vue +++ b/frontend/src/components/ccofApplication/family/FamilyOrganization.vue @@ -12,6 +12,14 @@ + + + + + + Organization Mailing Address @@ -86,15 +94,12 @@ - + Type of Organization + - - - + diff --git a/frontend/src/components/ccofApplication/group/OrganizationInformation.vue b/frontend/src/components/ccofApplication/group/OrganizationInformation.vue index 412c1c74..f99c55db 100644 --- a/frontend/src/components/ccofApplication/group/OrganizationInformation.vue +++ b/frontend/src/components/ccofApplication/group/OrganizationInformation.vue @@ -104,8 +104,9 @@ + Type of Organization + label=""> diff --git a/frontend/src/components/mtfi/CurrentFeeVerification.vue b/frontend/src/components/mtfi/CurrentFeeVerification.vue index b2308e1b..6be958b2 100644 --- a/frontend/src/components/mtfi/CurrentFeeVerification.vue +++ b/frontend/src/components/mtfi/CurrentFeeVerification.vue @@ -19,7 +19,7 @@

- Our records show this facility's approved parent fees for are as follows: + Our records show this facility's approved parent fees are as follows:
diff --git a/frontend/src/components/requestChanges/FamilyChangeDialogueContent.vue b/frontend/src/components/requestChanges/FamilyChangeDialogueContent.vue index 67bfbfa1..3ddf1249 100644 --- a/frontend/src/components/requestChanges/FamilyChangeDialogueContent.vue +++ b/frontend/src/components/requestChanges/FamilyChangeDialogueContent.vue @@ -31,7 +31,7 @@ -

Email: cccda@gov.bc.ca

+

Email: ccdda@gov.bc.ca

Mailing address:

Child Care Operating Funding
PO Box 9965 Stn Prov Govt
diff --git a/frontend/src/components/requestChanges/GroupChangeDialogueContent.vue b/frontend/src/components/requestChanges/GroupChangeDialogueContent.vue index 3a0dbfa2..52c7ee02 100644 --- a/frontend/src/components/requestChanges/GroupChangeDialogueContent.vue +++ b/frontend/src/components/requestChanges/GroupChangeDialogueContent.vue @@ -33,7 +33,7 @@ -

Email: cccda@gov.bc.ca

+

Email: ccdda@gov.bc.ca

Mailing address:

Child Care Operating Funding
PO Box 9965 Stn Prov Govt
diff --git a/frontend/src/store/modules/ccfriApp.js b/frontend/src/store/modules/ccfriApp.js index 35c3275c..964d3358 100644 --- a/frontend/src/store/modules/ccfriApp.js +++ b/frontend/src/store/modules/ccfriApp.js @@ -34,18 +34,18 @@ function getProgramYear(selectedGuid, programYearList){ } function getPreviousCareType(currentRFI, careType, previousProgramYearId, getters, rootState) { - - if (currentRFI.prevYearFeesCorrect || (rootState.navBar.changeType == 'mtfi') && currentRFI.previousCcfriId ) { - let previousRFI = getters.getPreviousApprovedFeesByFacilityId(currentRFI.facilityId); + //console.log('CURRENTRFI', currentRFI); + // Lookup previous years approved parent fees for most RFI scenarios + if ((currentRFI.existingFeesCorrect == 100000000 && currentRFI.previousCcfriId) || (rootState.navBar.changeType == 'mtfi' && rootState.app.isRenewal ) ) { + let previousRFI = getters.getPreviousApprovedFeesByFacilityId({facilityId: currentRFI.facilityId, previousProgramYearId: previousProgramYearId}); return previousRFI.childCareTypes.find(item =>{ return (item.childCareCategoryId == careType.childCareCategoryId && item.programYearId == previousProgramYearId); }); } //MTFI can be done on a new PCF or renewal - so it may not have previous CCFRI. If no previous CCFRI, base median off current year. - else if (rootState.navBar.changeType == 'mtfi' && !rootState.app.isRenewal ) { + //keep as elif because PCF RFI may call this but not satisfy the above if statement + else if(rootState.navBar.changeType == 'mtfi' && !rootState.app.isRenewal ){ return currentRFI.childCareTypes.find(item => { return (item.childCareCategoryId == careType.childCareCategoryId && item.programYearId == rootState.application.programYearId); }); } - else { - return currentRFI.childCareTypes.find(item => { return (item.childCareCategoryId == careType.childCareCategoryId && item.programYearId == previousProgramYearId); }); - } + //else - this will return undefined and RFI will be not be triggered } function isOver3Percent(currentFees, previousFees, percentValue) { @@ -101,8 +101,8 @@ export default { getCCFRIMedianById: (state) => (ccfriId) => { return state.ccfriMedianStore[ccfriId]; }, - getPreviousApprovedFeesByFacilityId: (state) => (facilityId) => { - return state.previousFeeStore[facilityId]; + getPreviousApprovedFeesByFacilityId: (state) => ({facilityId: facilityId, previousProgramYearId: programYearId}) => { + return state.previousFeeStore[`${facilityId}-${programYearId}`]; }, }, mutations: { @@ -116,9 +116,9 @@ export default { state.ccfriStore[ccfriId] = CCFRIFacilityModel; } }, - addPreviousApprovedParentFees: (state, {facilityId, parentFeeModel} ) => { + addPreviousApprovedParentFees: (state, {facilityId, programYearId, parentFeeModel} ) => { if (facilityId) { - state.previousFeeStore[facilityId] = parentFeeModel; + state.previousFeeStore[`${facilityId}-${programYearId}`] = parentFeeModel; } }, removeCCFRIFromStore:(state, ccfriId ) => { @@ -207,7 +207,6 @@ export default { try { let res = await ApiService.apiAxios.patch('/api/application/parentfee/', payload); - console.log('the res is:' , res); return res; } catch (error) { console.log(error); @@ -313,13 +312,13 @@ export default { } }, async getPreviousApprovedFees({commit, state}, {facilityId, programYearId}) { - const prevFees = state.previousFeeStore[facilityId]; + const prevFees = state.previousFeeStore[`${facilityId}-${programYearId}`]; if (prevFees) { return prevFees; } else { try { const response = await ApiService.apiAxios.get(`${ApiRoutes.CCFRI_FEES}/${facilityId}/year/${programYearId}`); - commit('addPreviousApprovedParentFees', {facilityId: facilityId, parentFeeModel: response.data}); + commit('addPreviousApprovedParentFees', {facilityId: facilityId, programYearId: programYearId, parentFeeModel: response.data}); return response.data; } catch(e) { console.log(`Failed to get existing Facility with error - ${e}`); @@ -337,7 +336,6 @@ export default { let careTypes = []; const currProgramYear = getProgramYear(ccofProgramYearId, programYearList); const prevProgramYear = getProgramYear(currProgramYear.previousYearId, programYearList); - const prevCcfriApp = await dispatch('getPreviousApprovedFees', {facilityId: facilityId, programYearId: prevProgramYear.programYearId}); console.log(prevCcfriApp, 'in upper try');