diff --git a/jobs/furnishings/src/furnishings/stage_processors/stage_one.py b/jobs/furnishings/src/furnishings/stage_processors/stage_one.py index c4b76bcac3..59fdc8494f 100644 --- a/jobs/furnishings/src/furnishings/stage_processors/stage_one.py +++ b/jobs/furnishings/src/furnishings/stage_processors/stage_one.py @@ -53,7 +53,8 @@ async def _send_first_round_notification(self, batch_processing: BatchProcessing if email: # send email letter _, eligible_details = InvoluntaryDissolutionService.check_business_eligibility( - batch_processing.business_identifier, False + batch_processing.business_identifier, + InvoluntaryDissolutionService.EligibilityFilters(exclude_in_dissolution=False) ) if eligible_details: new_furnishing = self._create_new_furnishing( diff --git a/jobs/involuntary-dissolutions/involuntary_dissolutions.py b/jobs/involuntary-dissolutions/involuntary_dissolutions.py index c8c19a36b8..7d2289835e 100644 --- a/jobs/involuntary-dissolutions/involuntary_dissolutions.py +++ b/jobs/involuntary-dissolutions/involuntary_dissolutions.py @@ -235,7 +235,8 @@ def stage_2_process(app: Flask): for batch_processing in batch_processings: eligible, _ = InvoluntaryDissolutionService.check_business_eligibility( - batch_processing.business_identifier, exclude_in_dissolution=False + batch_processing.business_identifier, + InvoluntaryDissolutionService.EligibilityFilters(exclude_in_dissolution=False) ) if eligible: batch_processing.step = BatchProcessing.BatchProcessingStep.WARNING_LEVEL_2 @@ -270,7 +271,8 @@ async def stage_3_process(app: Flask, qsm: QueueService): for batch_processing in batch_processings: eligible, _ = InvoluntaryDissolutionService.check_business_eligibility( - batch_processing.business_identifier, exclude_in_dissolution=False + batch_processing.business_identifier, + InvoluntaryDissolutionService.EligibilityFilters(exclude_in_dissolution=False) ) if eligible: filing = create_invountary_dissolution_filing(batch_processing.business_id) diff --git a/queue_services/entity-filer/src/entity_filer/filing_processors/annual_report.py b/queue_services/entity-filer/src/entity_filer/filing_processors/annual_report.py index 9c808ebdda..4d51f29b4c 100644 --- a/queue_services/entity-filer/src/entity_filer/filing_processors/annual_report.py +++ b/queue_services/entity-filer/src/entity_filer/filing_processors/annual_report.py @@ -47,7 +47,10 @@ def process(business: Business, filing: Dict, filing_meta: FilingMeta, flag_on): # remove dissolution flag if business can be withdrawn if flag_on and business.in_dissolution: - eligibility, _ = InvoluntaryDissolutionService.check_business_eligibility(business.identifier, False) + eligibility, _ = InvoluntaryDissolutionService.check_business_eligibility( + business.identifier, + InvoluntaryDissolutionService.EligibilityFilters(exclude_in_dissolution=False) + ) if not eligibility: batch_processing, _ = InvoluntaryDissolutionService.get_in_dissolution_batch_processing(business.id) batch_processing.status = BatchProcessing.BatchProcessingStatus.WITHDRAWN.value