# HLHL: A guide to managing a loan application's state in TRUS
[toc]
# Adding Income Types
## Salaried Income types
1. Similar to the Tax Return type, upload a Paystub
2. Go to the Paystub in the DocumentsHurdle and fill out the proper fields for monthly income and such.
## Other Income types
1. Go to the Income Hurdle
2. Click `Add Income`
3. Upload the document for the type of income you're trying to add (hit Save)
4. Navigate back to Documents Review > Other Income
5. Set the type to `Income: Other`
6. Set the
7. In the `Actual Description` dropdown, select the type of income you're tying to add.
8. Click the `Source(s)` link to navigate to the Document, and add the data for `Effective Description` and `Monthly Amount`.
## Tax Return Type
1. Ensure that a document of type Tax Return is uploaded
2. Go to the document in the DocumentsHurdle. Filling out Schedule A/B/C/D with values will populate the corresponding income types in the system.
## Setting EINs
Add a tax return type
# General State
## "Sorry, we're having trouble reading your credit report. We'll look into this ASAP and contact you."
- http://localhost:8080/underwriter/app/133/CreditReportPullHurdle
- Let Borrower Proceed.
- Make sure that there were new entries in `credit_reports` table, and note the new record's ID
- Add an entry into `credit_scores` that references the ID, and has a high-enough score to pass (740+ for example)
- borrower1_credit_check_authorized == NOW() -> Save()
## To get a loan application into the conditionally approved state
1. Go to UnderwritingSummaryHurdle, and set the LoanDecision as being `Conditionally Approved` and not (whatever it is)
1. Done (??)
## To advance to the PrePC state:
- The `shared/selectors.ts` file is what determines which component is output to the Dashboard
1. Ensure the `loan_status` is `application_complete`
1. Ensure the `loan_decision` is `conditionally_approved`
1. Go to the ExplanationsHurdle and click the button at the bottom of the page to bypass the Explanations step
1. On the loan_app in question, set the `borrower_assets_confirmed_by_operator` value to `true`o
1. Done.
## RESPA
- Go to the database and fill out all the values for the `purchased_property_***`
- Go to the underwritingsummaryhurdle and click "Generate Loan Number"
## Recomputing Tasks
- Make sure the app is in the `Conditionally Approved` state
- Go to the DocumentsHurdle and upload a document with type Initial Loan Estimate