From cd651c3a182ddb8a21e68cf90127d51ce07a7e8f Mon Sep 17 00:00:00 2001 From: Vysakh Menon Date: Wed, 31 Jul 2024 15:54:06 -0700 Subject: [PATCH] 21933 fix business type issue for new business (#2887) --- .../resources/v2/business/business_filings/business_filings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legal-api/src/legal_api/resources/v2/business/business_filings/business_filings.py b/legal-api/src/legal_api/resources/v2/business/business_filings/business_filings.py index dd4455e4d3..2fa3f7afc2 100644 --- a/legal-api/src/legal_api/resources/v2/business/business_filings/business_filings.py +++ b/legal-api/src/legal_api/resources/v2/business/business_filings/business_filings.py @@ -889,7 +889,7 @@ def create_invoice(business: Business, # pylint: disable=too-many-locals,too-ma def set_effective_date(business: Business, filing: Filing): """Set the effective date of the Filing.""" filing_type = filing.filing_json['filing']['header']['name'] - if business.legal_type != Business.LegalTypes.COOP.value and filing_type == 'changeOfAddress': + if filing_type == 'changeOfAddress' and business.legal_type != Business.LegalTypes.COOP.value: effective_date = LegislationDatetime.tomorrow_midnight() effective_date_utc = LegislationDatetime.as_utc_timezone(effective_date) filing_json_update = copy.deepcopy(filing.filing_json)