Skip to content

Commit

Permalink
Temp fix for error on get business when in dissolution business has p…
Browse files Browse the repository at this point in the history
…ending COA (bcgov#2786)
  • Loading branch information
argush3 authored Jun 24, 2024
1 parent 5026555 commit 8c125d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion legal-api/src/legal_api/services/involuntary_dissolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,12 @@ def _has_future_effective_filing():
Check if the business has future effective filings.
"""
# pylint: disable=protected-access
return db.session.query(Filing). \
filter(Filing.business_id == Business.id). \
filter(Filing._filing_type.notin_(['changeOfAddress'])). \
filter(Filing._status.in_([Filing.Status.PENDING.value, Filing.Status.PAID.value])). \
exists() # pylint: disable=protected-access
exists()


def _has_delay_of_dissolution_filing():
Expand Down

0 comments on commit 8c125d9

Please sign in to comment.