diff --git a/frontend/src/components/ccfriApplication/group/AddNewFees.vue b/frontend/src/components/ccfriApplication/group/AddNewFees.vue index 26c566165..e56df0edf 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 647ade8fe..5715c4581 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 cce57a1b7..15e8086e0 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 412c1c74e..f99c55db2 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 b2308e1bf..6be958b24 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 67bfbfa19..3ddf12497 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 3a0dbfa24..52c7ee029 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 35c3275c8..964d3358a 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');