Skip to content

Commit

Permalink
Merge pull request #221 from icefoganalytics/test
Browse files Browse the repository at this point in the history
Fix and debug
  • Loading branch information
datajohnson authored Dec 28, 2023
2 parents 896e1b3 + e9a4fd6 commit f62b2c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const actions = {
let familySize = 1;

// Common-law or Married
if ([3, 4].includes(state.application.csl_classification)) familySize++;
if ([3].includes(state.application.csl_classification)) familySize++;

if (store.getters.selectedStudent && isArray(store.getters.selectedStudent.dependent_info)) {
dependentCount = store.getters.selectedStudent.dependent_info.filter(
Expand Down Expand Up @@ -257,7 +257,7 @@ const actions = {
let familySize = 1;

// Common-law or Married
if ([3, 4].includes(state.application.csl_classification)) familySize++;
if ([3].includes(state.application.csl_classification)) familySize++;

if (store.getters.selectedStudent && isArray(store.getters.selectedStudent.dependent_info)) {
dependentCount = store.getters.selectedStudent.dependent_info.filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ const getters = {
},

assessedAmount(state, getters) {
console.log(state.assessment.study_months, getters.familyIncome, getters.threshold.income_cutoff);
console.log("FR", state.fundingRequest.status_id);
console.log(
getters.totalCosts,
getters.needRemaining,
state.baseRate,
getters.phaseOutRate,
getters.threshold.income_threshold
);

if (isUndefined(state.assessment.study_months) || getters.familyIncome >= getters.threshold.income_cutoff) return 0;
if (!(state.fundingRequest && [6, 7].includes(state.fundingRequest.status_id))) return 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const actions = {
let familySize = 1;

// Common-law or Married
if ([3, 4].includes(state.application.csl_classification)) familySize++;
if ([3].includes(state.application.csl_classification)) familySize++;

if (store.getters.selectedStudent && isArray(store.getters.selectedStudent.dependent_info)) {
dependentCount = store.getters.selectedStudent.dependent_info.filter(
Expand Down Expand Up @@ -334,7 +334,7 @@ const actions = {
let application = state.application;

// Common-law or Married
if ([3, 4].includes(state.application.csl_classification)) familySize++;
if ([3].includes(state.application.csl_classification)) familySize++;

if (store.getters.selectedStudent && isArray(store.getters.selectedStudent.dependent_info)) {
dependentCount = store.getters.selectedStudent.dependent_info.filter(
Expand Down

0 comments on commit f62b2c6

Please sign in to comment.