Skip to content

Commit

Permalink
21933 fix business type issue for new business (bcgov#2887)
Browse files Browse the repository at this point in the history
  • Loading branch information
vysakh-menon-aot authored Jul 31, 2024
1 parent 9dd9643 commit cd651c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cd651c3

Please sign in to comment.