From 8ab1131e98d673380990e59bad370ddb2240227d Mon Sep 17 00:00:00 2001 From: Aimee Date: Thu, 20 Jun 2024 13:24:02 -0700 Subject: [PATCH] 21485 update business summary fix bug (#2776) * Fix typo * Added filingSubType in state filing --- .../template-parts/business-summary/stateTransition.html | 2 +- legal-api/src/legal_api/reports/business_document.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/legal-api/report-templates/template-parts/business-summary/stateTransition.html b/legal-api/report-templates/template-parts/business-summary/stateTransition.html index 70eb9b34fa..b7a6c3d3cb 100644 --- a/legal-api/report-templates/template-parts/business-summary/stateTransition.html +++ b/legal-api/report-templates/template-parts/business-summary/stateTransition.html @@ -35,7 +35,7 @@
Incorporation Number: {{ filing.identifier }}
- {% elif filing.filingType == 'dissolution' and filing.filngSubType == 'involuntary' %} + {% elif filing.filingType == 'dissolution' and filing.filingSubType == 'involuntary' %} Effective Date: {{ filing.effectiveDateTime }} {% else %} diff --git a/legal-api/src/legal_api/reports/business_document.py b/legal-api/src/legal_api/reports/business_document.py index 6fca66c8cb..1fce3fc833 100644 --- a/legal-api/src/legal_api/reports/business_document.py +++ b/legal-api/src/legal_api/reports/business_document.py @@ -397,6 +397,7 @@ def _format_state_filing(self, filing: Filing) -> dict: filing_info = {} filing_info['filingType'] = filing.filing_type + filing_info['filingSubType'] = filing.filing_sub_type filing_info['filingDateTime'] = filing.filing_date.isoformat() filing_info['effectiveDateTime'] = filing.effective_date.isoformat()