Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated income details preparer to show name of submitter #505

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

analoo
Copy link
Contributor

@analoo analoo commented Jan 10, 2024

No description provided.

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-505 January 10, 2024 00:47 Inactive
@analoo analoo added the ready for review This PR is ready for code-review label Jan 10, 2024
@@ -27,7 +27,7 @@ public Map<String, SubmissionField> prepareSubmissionFields(Submission submissio
Map<String, Object> incomeDetails = income.get(i);

boolean isSelfEmployed = Boolean.parseBoolean((String) incomeDetails.getOrDefault("selfEmployed", "false"));
var employeeName = incomeDetails.get("householdMemberJobAdd");
var employeeName = incomeDetails.get("householdMemberJobAdd").equals("you") ? submission.getInputData().get("firstName")+" "+submission.getInputData().get("lastName") : incomeDetails.get("householdMemberJobAdd");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sree-cfa - yes. Added it. Thank you!

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-505 January 12, 2024 00:51 Inactive
Copy link
Contributor

@sree-cfa sree-cfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sree-cfa sree-cfa merged commit db3a916 into main Jan 12, 2024
5 checks passed
@sree-cfa sree-cfa deleted the fix-snap-pdf-bugs branch January 12, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review This PR is ready for code-review
Projects
None yet
2 participants