Skip to content

Commit

Permalink
Merge pull request #1714 from wittejm/section-header-bugfix
Browse files Browse the repository at this point in the history
bugfix: section header elif case
  • Loading branch information
wittejm authored Nov 10, 2023
2 parents 6dc6d0d + 654d6ca commit 5ca73b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/expungeservice/charges_summarizer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from itertools import groupby

from expungeservice.models.charge import Charge, EditStatus
from expungeservice.models.record import Record
from expungeservice.models.record_summary import ChargesForSummaryPanel
Expand Down Expand Up @@ -79,11 +78,13 @@ def _primary_sort(charge: Charge, record: Record):
elif future_eligibility_label_on_case and has_balance and not case_has_ineligible_charge:
return 7, future_eligibility_label_on_case+" If Balance Paid", charge.case_number

elif future_eligibility_label_on_case and not has_balance and not case_has_ineligible_charge:
elif future_eligibility_label_on_case and not has_balance and case_has_ineligible_charge:
return 8, future_eligibility_label_on_case+" on case with Ineligible charge", charge.case_number

elif future_eligibility_label_on_case and has_balance and case_has_ineligible_charge:
return 9, future_eligibility_label_on_case+" If Balance Paid on case with Ineligible charge", charge.case_number
else:
return 0, "", ""

else:
return 0, "", ""
Expand Down

0 comments on commit 5ca73b3

Please sign in to comment.