Skip to content

Commit

Permalink
First pass
Browse files Browse the repository at this point in the history
  • Loading branch information
spokenbird authored and bseeger committed Jun 18, 2024
1 parent 55dffbb commit 1596cc9
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public Map<String, SubmissionField> prepareSubmissionFields(Submission submissio
results.putAll(prepareIncome(submission));
results.putAll(prepareAdditionIncome(submission));
results.putAll(prepareMoneyOnHandResources(submission));
results.putAll(prepareHasMoreThanHundredOnHand(submission));
return results;
}

Expand Down Expand Up @@ -171,4 +172,12 @@ private Map<String, SubmissionField> prepareMoneyOnHandResources(Submission subm
}
return fields;
}

private Map<String, SubmissionField> prepareHasMoreThanHundredOnHand(Submission submission) {
Map<String, SubmissionField> fields = new HashMap<>();
if (submission.getInputData().containsKey("expeditedMoneyOnHandAmount")) {
fields.put("householdHasResourcesOrAssets", new SingleField("householdHasResourcesOrAssets", "true", null));
}
return fields;
}
}

0 comments on commit 1596cc9

Please sign in to comment.