nonprofittechy / docassemble-ssareportchangesletter

An interview to help an SSI or SSDI recipient report changes to the Social Security Administration
MIT License
1 stars 2 forks source link

reference to a variable 'i' that could not be looked up in the question file #27

Closed BryceStevenWilley closed 3 years ago

BryceStevenWilley commented 3 years ago

Reproduction steps (done on apps-dev, through the playground at the moment)

Full error text:


History
Tried to run mandatory code at 0.00000s

id: order
mandatory: True
code: |
  letter_date
  intro_screen
  client.name.first
  client.phone_number
  client.ssn
  benefits_type
  set_changes
  if working or working_for_self:
    jobs.gather()
  # changes
  other_changes
  if not working and not working_for_self and (changes.true_values().number() < 1) and not other_changes:
    wrong_interview
  else:
    if benefits_type == 'ssi':
      #if changes.true_values().number() > 0:
      if changes['I moved']:
        #saw_change_choices     
        yes_moved
      if changes['I was in jail']: 
        yes_jail
        jail_range
      if changes['I was in the hospital']:  
        yes_hospital
        hopsital_range
      if changes['I was in a nursing home']: 
        yes_nursing
        nursing_range
      if changes['I was outside of the United States for more than 30 days in a row']: 
        yes_expat
        expat_range
      if changes['The number of people in my household changed']:
        change_details['The number of people in my household changed'].reasons
        household_change_date

      if changes['I received assistance to pay for rent or food']:
        change_details['I received assistance to pay for rent or food'].date

      if changes['I received money from a lawsuit or lottery winnings']: 
        change_details['I received money from a lawsuit or lottery winnings'].date 

      if changes['My immigration status changed']: 
        change_details['My immigration status changed'].date 

  changes_details
  ssa_office.name.text
  client.signature
  store_variables_snapshot(data={'zip':client.address.zip,
    'state':client.address.state,
    'change_type':change_type,
    'changes': changes.true_values(),
    'benefits_type':benefits_type,
    'date':today(),
    'ssa_office': str(ssa_office.address.on_one_line()),
    })
  download_form

Needed definition of jobs.there_is_another at 0.00007s
Tried to ask question at 0.00017s

id: job is there another
question: |
  So far you have told us about ${i+1} jobs.
subquestion: |
  Do you have any other jobs to report?
yesno: jobs.there_is_another

Needed definition of i at 0.00087s
nonprofittechy commented 3 years ago

Fixed in https://github.com/nonprofittechy/docassemble-ssareportchangesletter/commit/e62a2119fcaee7bc45095cf93b8ed6c98c076fa0