From caf5e2da1b5b77c27e3fb6eb424c307b6151c73c Mon Sep 17 00:00:00 2001 From: Doug Lovett Date: Tue, 17 Oct 2023 11:25:46 -0700 Subject: [PATCH] Staff NCAN registration report update (#1588) Signed-off-by: Doug Lovett --- mhr_api/src/mhr_api/reports/v2/report_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mhr_api/src/mhr_api/reports/v2/report_utils.py b/mhr_api/src/mhr_api/reports/v2/report_utils.py index 2f526aaf8..a3d2ae1df 100755 --- a/mhr_api/src/mhr_api/reports/v2/report_utils.py +++ b/mhr_api/src/mhr_api/reports/v2/report_utils.py @@ -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,