Skip to content

Commit

Permalink
Staff NCAN registration report update (#1588)
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Lovett <[email protected]>
  • Loading branch information
doug-lovett authored Oct 17, 2023
1 parent 7643b9e commit caf5e2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mhr_api/src/mhr_api/reports/v2/report_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ def get_report_files(request_data: dict, report_type: str, mail: bool = False) -
title_text += ' (' + request_data['templateVars']['note'].get('cancelledDocumentDescription') + ')'
else:
title_text = str(request_data['templateVars'].get('documentDescription', '')).upper()
if report_type == ReportTypes.MHR_ADMIN_REGISTRATION and \
request_data['templateVars'].get('documentType', '') == 'NCAN' and \
request_data['templateVars']['note'].get('cancelledDocumentDescription'):
title_text += ' (' + request_data['templateVars']['note'].get('cancelledDocumentDescription') + ')'
subtitle_text = request_data['templateVars'].get('meta_subtitle', '')
footer_text = request_data['templateVars'].get('footer_content', '')
if report_type in (ReportTypes.MHR_REGISTRATION, ReportTypes.MHR_COVER, ReportTypes.MHR_REGISTRATION_COVER,
Expand Down

0 comments on commit caf5e2d

Please sign in to comment.