SuffolkLITLab/docassemble-ALToolbox

Variable names appear in table review screen

miabonardi opened this issue · 1 comments

Screen Shot 2023-09-09 at 4 06 59 PM

generic object: ALItemizedJob
continue button field: x.to_subtract.revisit
question: |
Edit deductions from ${ x.source }
subquestion: |
These are amounts that are taken out of your pay.
${ x.to_subtract.table }
${ x.to_subtract.add_action() }

This is intentional; the table code is

generic object: ALItemizedValueDict
table: x.table
rows: x
columns:
- Type: |
row_index
- Amount: |
'$0' if hasattr(row_item, 'exists') and not row_item.exists else currency(row_item.value)
edit:
- exists
- value

In the ALItemizedValueDict, we don't know if this is for a job, or an income, etc. You should overwrite the table to use your specific object's terms. Take a look at how it's done in the Affidavit.

We do remove the underscores elsewhere, I can do that easily. But it'll still be lower case and not using the same terms that you are likely using in your interview