From 13b7cf546cab6d9131c7571ad48d446bbb00c66c Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Thu, 2 Jul 2026 13:35:20 -0400 Subject: [PATCH] Don't ask for Military status for Businesses Fix #170 --- .../MATCSmallClaims/data/questions/small_claims.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docassemble/MATCSmallClaims/data/questions/small_claims.yml b/docassemble/MATCSmallClaims/data/questions/small_claims.yml index 2dea2c3..73c4bf4 100644 --- a/docassemble/MATCSmallClaims/data/questions/small_claims.yml +++ b/docassemble/MATCSmallClaims/data/questions/small_claims.yml @@ -66,6 +66,9 @@ code: | code: | jurisdiction_id = 'massachusetts' --- +code: | + form_uses_efiling = True +--- code: | proxy_conn = ProxyConnection(credentials_code_block='tyler_login', default_jurisdiction=jurisdiction_id) --- @@ -137,7 +140,12 @@ code: | defendants other_parties[0].address.address other_parties[0].phone_number - set_all_military_statuses + for party in other_parties: + if party.person_type == "business": + party.military_status = "no" + if any(party.person_type != "business" for party in other_parties): + set_all_military_statuses + if any([party.military_status == "unknown" for party in other_parties]): bond_agreement_i_understand @@ -886,6 +894,7 @@ subquestion: | * If they are not serving in the military, answer "No" * If they concluded their service, answer "Past" * If you are unsure, answer "Unknown" + ${ collapse_template(explain_military_service)} fields: @@ -901,7 +910,7 @@ fields: "datatype": "radio", "choices": military_status_labels } - for party in sorted(other_parties) + for party in sorted(other_parties) if party.person_type != "business" ] --- template: why_military_template