コード例 #1
0
 def get_fields(ph, event):
     """
     :type ph: PersonalHistory
     :type event: Event
     """
     return [
         ("1a", str(ph.name)),
         ("1b", ph.address.address),
         ("1c", ph.address.city),
         ("1d", ph.address.state),
         ("1e", ph.address.zip_code),
         ("2", "N/A"),  # Lawyer, if person has one
         ("3", SanMateoCountyCourt.mailing_address_multiline_str()),
         ("4", event.associated_cases[0].case_id),
         ("5", FormUtil.short_case_name(ph, event)),
         ("6", str(ph.name)),
         ("7", event.associated_cases[0].case_id),
     ]
コード例 #2
0
 def get_fields(ph, event):
     """
     :type ph: PersonalHistory
     :type event: Event
     """
     fi = ph.financial_information
     fields = [
         ("1a", str(ph.name)),
         ("1b", ph.address.address),
         ("1c", ph.address.city),
         ("1d", ph.address.state),
         ("1e", ph.address.zip_code),
         ("1f", ph.phone_number),
         ("2a", fi.job.job_title),
         ("2b", fi.job.employer_name),
         ("2c", fi.job.employer_address.to_str_one_line()),
         ("3a", "N/A"),  # Lawyer, if person has one
         ("4a", True),  # Check 4a but not 4b
     ]
     fields.extend(FW001Model._waiver_needed_reasons(fi))
     fields.extend(
         [("6a", True)]
         if fi.event_index_to_whether_fees_have_been_waived_recently[ph.rap_sheet.events.index(event)] else []
     )
     fields.extend(
         [("7", True)] if fi.income_changes_significantly_month_to_month else []
     )
     fields.extend(FW001Model._monthly_and_household_income(fi))
     fields.extend(FW001Model._money_and_property(fi))
     fields.extend(FW001Model._monthly_deductions_and_expenses(fi))
     fields.extend([
         ("12", SanMateoCountyCourt.mailing_address_multiline_str()),
         ("13", event.associated_cases[0].case_id),
         ("14", FormUtil.short_case_name(ph, event)),
     ])
     return fields
コード例 #3
0
 def get_fields(ph, event):
     """
     :type ph: PersonalHistory
     :type event: Event
     """
     fi = ph.financial_information
     fields = [
         ("1a", str(ph.name)),
         ("1b", ph.address.address),
         ("1c", ph.address.city),
         ("1d", ph.address.state),
         ("1e", ph.address.zip_code),
         ("1f", ph.phone_number),
         ("2a", fi.job.job_title),
         ("2b", fi.job.employer_name),
         ("2c", fi.job.employer_address.to_str_one_line()),
         ("3a", "N/A"),  # Lawyer, if person has one
         ("4a", True),  # Check 4a but not 4b
     ]
     fields.extend(FW001Model._waiver_needed_reasons(fi))
     fields.extend([(
         "6a",
         True)] if fi.event_index_to_whether_fees_have_been_waived_recently[
             ph.rap_sheet.events.index(event)] else [])
     fields.extend([(
         "7",
         True)] if fi.income_changes_significantly_month_to_month else [])
     fields.extend(FW001Model._monthly_and_household_income(fi))
     fields.extend(FW001Model._money_and_property(fi))
     fields.extend(FW001Model._monthly_deductions_and_expenses(fi))
     fields.extend([
         ("12", SanMateoCountyCourt.mailing_address_multiline_str()),
         ("13", event.associated_cases[0].case_id),
         ("14", FormUtil.short_case_name(ph, event)),
     ])
     return fields