Skip to content

Commit

Permalink
change get corp_name logic for continuation in
Browse files Browse the repository at this point in the history
  • Loading branch information
eason-pan-bc committed Nov 15, 2024
1 parent 76aa443 commit de18722
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def _get_pdfs(
attach_order += 1

# add receipt
corp_name = filing.filing_json['filing']['continuationIn']['nameRequest'].get('legalName', 'Numbered Company')
if not (corp_name := business.get('legalName')):
legal_type = business.get('legalType')
corp_name = Business.BUSINESSES.get(legal_type, {}).get('numberedDescription')

# Debugging logger for #24361, will have another PR before closing the ticket to remove it
current_app.logger.debug(
Expand Down

0 comments on commit de18722

Please sign in to comment.