Skip to content

Commit

Permalink
Employment income (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkemperman-cfa committed Feb 26, 2024
1 parent c6480ea commit 1b56d65
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public Map<String, SubmissionField> prepareSubmissionFields(Submission submissio
results.put("employmentPayFreq" + i, new SingleField("employmentPayFreq", (String) payPeriod, nonSelfEmploymentIdx));
results.put("employeeHoursPerWeek" + i, new SingleField("employeeHoursPerWeek", (String) hoursPerWeek, nonSelfEmploymentIdx));
results.put("employeeHourlyWage" + i, new SingleField("employeeHourlyWage", (String) hourlyWage, nonSelfEmploymentIdx));
// only fill this out if job is not paid by the hour
if (incomeDetails.get("jobPaidByHour").equals("false")) {
var payPeriodAmount = incomeDetails.get("payPeriodAmount");
results.put("employmentPayDescription" + i, new SingleField("employmentPayDescription", payPeriodAmount + " per pay period", nonSelfEmploymentIdx));
}
nonSelfEmploymentIdx++;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/pdf-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ subflowInfo:
employeeName: employeeName
employerName: employerName
employmentPayFreq: employmentPayFreq
employmentPayDescription: employmentPayDescription
employeeHoursPerWeek: employeeHoursPerWeek
employeeHourlyWage: employeeHourlyWage
selfEmploymentName: selfEmploymentName
Expand Down
Binary file modified src/main/resources/pdfs/la_application_for_assistance.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<th:block th:ref="copyReceiveOptions">
<!-- Copy the below input if you want to add more -->
<th:block

th:replace="~{fragments/inputs/checkboxInSet :: checkboxInSet(inputName='copyReceiveMethod',value='Paper', label=#{application-copy.how-to-receive.option1})}"/>
<th:block
th:replace="~{fragments/inputs/checkboxInSet :: checkboxInSet(inputName='copyReceiveMethod',value='Electronic', label=#{application-copy.how-to-receive.option2})}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void testMultipleJobs() {
.build();

var results = preparer.prepareSubmissionFields(submission, null);
assertThat(results.size()).isEqualTo(19);
assertThat(results.size()).isEqualTo(20);
assertThat(results.get("employeeName0")).isEqualTo(new SingleField("employeeName", "Joka Aksj", 1));
assertThat(results.get("employerName0")).isEqualTo(new SingleField("employerName", "CfA", 1));
assertThat(results.get("employmentPayFreq0")).isEqualTo(new SingleField("employmentPayFreq", null, 1));
Expand Down

0 comments on commit 1b56d65

Please sign in to comment.