Skip to content

Commit

Permalink
Merge pull request #1757 from emko-274/summary_pdf_edits
Browse files Browse the repository at this point in the history
edits to summary PDF
  • Loading branch information
emko-274 authored Sep 4, 2024
2 parents e01c7c5 + e93eaa4 commit 5e3fd57
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ Name: {{ name }}
<b>You have open charges. You are not eligible to expunge ANY records, including old charges, while you have open charges.</b>
{% endif %}

## Charges Eligible Now
## Charges
Excludes traffic violations

### Charges Eligible Now
{% if eligible_case_charges | count > 0 %}
{% for case_info, charges_info in eligible_case_charges[0][1] %}
{% include 'partials/case.md.j2' %}
Expand All @@ -29,15 +32,15 @@ You are not currently eligible to expunge any charges.
{% endif %}

{% if ineligible_case_charges | count > 0 %}
## Ineligible Charges
### Ineligible Charges
These convictions are not eligible for expungement at any time under the current law.

{% for case_info, charges_info in ineligible_case_charges[0][1] %}
{% include 'partials/case.md.j2' %}
{% endfor %}
{% endif %}
{% if eligible_if_paid_case_charges | count > 0 %}
## Charges Eligible Now If Balance Paid
### Charges Eligible Now If Balance Paid
These convictions are eligible as soon as the balance of fines on the case is paid.

{% for case_info, charges_info in eligible_if_paid_case_charges[0][1] %}
Expand All @@ -46,8 +49,8 @@ These convictions are eligible as soon as the balance of fines on the case is pa
{% endif %}

{% if future_eligible_charges | count > 0 %}
## Future Eligible Charges
The following charges (dismissed and convicted) are eligible at the designated dates. Convictions in the future will set your eligibility dates back until ten years from the date of conviction.
### Future Eligible Charges
The following charges (dismissed and convicted) are eligible at the designated dates.

{% for label, section in future_eligible_charges %}
### {{ label }}
Expand All @@ -59,7 +62,7 @@ The following charges (dismissed and convicted) are eligible at the designated d
{% endif %}

{% if needs_more_analysis_charges | count > 0 %}
## Charges Needing More Analysis
### Charges Needing More Analysis
Additionally, you have charges for which the online records do not contain enough information to determine eligibility. If you are curious about the eligibility of these charges, please contact [email protected].

{% for case_info, charges_info in needs_more_analysis_charges[0][1] %}
Expand All @@ -68,7 +71,7 @@ Additionally, you have charges for which the online records do not contain enoug
{% endif %}

{% if county_fines | count > 0 %}
## Balance Due by County
### Balance Due by County
{% for county in county_fines %}
{% if county['case_fines'] | length > 0 %}
<b>{{county['county_name']}}</b>
Expand All @@ -80,10 +83,10 @@ Additionally, you have charges for which the online records do not contain enoug
{% endfor %}
{% endif %}

### Disclaimer:
#### Disclaimer:
RecordSponge is not your lawyer. The results below should be used as a guide only. If you are relying on this information to expunge your record, please email [email protected] for free consultation.

### Assumptions
#### Assumptions
<b>1) Successful completion of court requirements</b> &nbsp; If you are currently on probation or conditional discharge, the analysis below assumes that you will successfully complete those requirements.

<b>2) Court debt paid off</b> &nbsp; You must pay off all court debt on a case before you file for expungement on any case which you are otherwise eligible to expunge.
Expand Down
13 changes: 8 additions & 5 deletions src/backend/tests/pdf/expected/custom_header.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

## PLEASE READ THIS

## Charges Eligible Now
## Charges
Excludes traffic violations

### Charges Eligible Now
You are not currently eligible to expunge any charges.

## Charges Eligible Now If Balance Paid
### Charges Eligible Now If Balance Paid
These convictions are eligible as soon as the balance of fines on the case is paid.

- Multnomah CASEJD1 – $529.08
Expand All @@ -14,15 +17,15 @@ These convictions are eligible as soon as the balance of fines on the case is pa



## Balance Due by County
### Balance Due by County
<b>Multnomah</b>
CASEJD1 - $529.08

### Disclaimer:
#### Disclaimer:
RecordSponge is not your lawyer. The results below should be used as a guide only. If you are relying on this information to expunge your record, please email [email protected] for free consultation.

### Assumptions
#### Assumptions
<b>1) Successful completion of court requirements</b> &nbsp; If you are currently on probation or conditional discharge, the analysis below assumes that you will successfully complete those requirements.

<b>2) Court debt paid off</b> &nbsp; You must pay off all court debt on a case before you file for expungement on any case which you are otherwise eligible to expunge.
Expand Down
13 changes: 8 additions & 5 deletions src/backend/tests/pdf/expected/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ Name: JOHN DOE

## PLEASE READ THIS

## Charges Eligible Now
## Charges
Excludes traffic violations

### Charges Eligible Now
You are not currently eligible to expunge any charges.

## Charges Eligible Now If Balance Paid
### Charges Eligible Now If Balance Paid
These convictions are eligible as soon as the balance of fines on the case is paid.

- Multnomah CASEJD1 – $529.08
Expand All @@ -17,15 +20,15 @@ These convictions are eligible as soon as the balance of fines on the case is pa



## Balance Due by County
### Balance Due by County
<b>Multnomah</b>
CASEJD1 - $529.08

### Disclaimer:
#### Disclaimer:
RecordSponge is not your lawyer. The results below should be used as a guide only. If you are relying on this information to expunge your record, please email [email protected] for free consultation.

### Assumptions
#### Assumptions
<b>1) Successful completion of court requirements</b> &nbsp; If you are currently on probation or conditional discharge, the analysis below assumes that you will successfully complete those requirements.

<b>2) Court debt paid off</b> &nbsp; You must pay off all court debt on a case before you file for expungement on any case which you are otherwise eligible to expunge.
Expand Down
12 changes: 6 additions & 6 deletions src/backend/tests/test_form_filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def test_normal_conviction_uses_multnomah_conviction_form():

#########################################

'''
class TestJohnCommonBuildZip:

'''class TestJohnCommonBuildZip:
filename = "oregon.pdf"
BASE_DIR = os.path.join(Path(__file__).parent.parent, "expungeservice", "files")
expected_form_values = oregon_john_common_pdf_fields
Expand Down Expand Up @@ -147,7 +147,7 @@ def test_form_fields_are_filled(self, mock_mkdtemp, MockZipFile, MockPdfWriter,
"foo/COMMON A NAME_120000_baker.pdf",
"foo/OSP_Form.pdf",
"foo/COMPILED.pdf",
#"foo/JOHN_DOE_record_summary.pdf"
"foo/JOHN_DOE_record_summary.pdf"
]
assert set(file_paths) == set(expected_file_paths)
Expand All @@ -160,7 +160,7 @@ def test_form_fields_are_filled(self, mock_mkdtemp, MockZipFile, MockPdfWriter,
("foo/COMMON A NAME_120000_baker.pdf", "COMMON A NAME_120000_baker.pdf"),
("foo/OSP_Form.pdf", "OSP_Form.pdf"),
("foo/COMPILED.pdf", "COMPILED.pdf"),
#("foo/JOHN_DOE_record_summary.pdf", "JOHN_DOE_record_summary.pdf")
("foo/JOHN_DOE_record_summary.pdf", "JOHN_DOE_record_summary.pdf")
]
assert set(zip_write_args) == set(expected_zip_write_args)
Expand All @@ -185,8 +185,8 @@ class TestJohnCommonMultnomahArrestBuildZip(TestJohnCommonBuildZip):
class TestJohnCommonMultnomahConvictionBuildZip(TestJohnCommonBuildZip):
filename = "multnomah_conviction.pdf"
expected_form_values: BuildZipResult = multnomah_conviction_john_common_pdf_fields'''

expected_form_values: BuildZipResult = multnomah_conviction_john_common_pdf_fields
'''

#########################################

Expand Down

0 comments on commit 5e3fd57

Please sign in to comment.