Skip to content

Commit

Permalink
update to mtfi closure date logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbeckett committed Dec 10, 2023
1 parent 36e3347 commit fe12344
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/mtfi/CurrentFeeVerification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,11 @@ export default {
return this.CCFRIFacilityModel.childCareTypes[index].feeFrequency == this.currentPcfCcfri.childCareTypes[index].feeFrequency;
},
isFormComplete(){
if (this.CCFRIFacilityModel.hasClosureFees == 100000000 && this.CCFRIFacilityModel.dates.length === 0){
//allow the user to submit if they had PCF closure fees, but no additional closure fees on the MTFI
if (this.CCFRIFacilityModel.hasClosureFees == 100000000 && this.isValidForm && (this.CCFRIFacilityModel.dates.length === 0 && this.previousClosureDates.dates.length > 0)){
return true;
}
else if (this.CCFRIFacilityModel.hasClosureFees == 100000000 && this.CCFRIFacilityModel.dates.length === 0){
return false;
}
return this.isValidForm; //false makes button clickable, true disables button
Expand Down

0 comments on commit fe12344

Please sign in to comment.