From 38b16c973301e1c41498fb78157a1d35db340a2e Mon Sep 17 00:00:00 2001 From: meawong Date: Wed, 27 Nov 2024 10:10:26 -0800 Subject: [PATCH] 24368 - Update BEN Statement in NOA (#3096) --- legal-api/flags.json | 1 + .../report-templates/template-parts/common/statement.html | 5 +++++ legal-api/src/legal_api/reports/report.py | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/legal-api/flags.json b/legal-api/flags.json index fe00fd30cd..6f0d1d71ca 100644 --- a/legal-api/flags.json +++ b/legal-api/flags.json @@ -6,6 +6,7 @@ "enable-legal-name-fix": true, "disable-nr-check": false, "enable-involuntary-dissolution-filter": false, + "enable-new-ben-statements": false, "involuntary-dissolution-filter": { "include-accounts": [], "exclude-accounts": [] diff --git a/legal-api/report-templates/template-parts/common/statement.html b/legal-api/report-templates/template-parts/common/statement.html index 247ad782a4..3be1344ce3 100644 --- a/legal-api/report-templates/template-parts/common/statement.html +++ b/legal-api/report-templates/template-parts/common/statement.html @@ -2,8 +2,13 @@
BC Benefit Company Statement
+ {% if enable_new_ben_statements %} + This company is a benefit company and, as such, is committed to conducting its + business in a responsible and sustainable manner and promoting one or more public benefits. + {% else %} This company is a benefit company and, as such, has purposes that include conducting its business in a responsible and sustainable manner and promoting one or more public benefits. + {% endif %}
{% elif business.legalType in ['CC', 'CCC'] %} diff --git a/legal-api/src/legal_api/reports/report.py b/legal-api/src/legal_api/reports/report.py index a45d36803d..5c923fb4c5 100644 --- a/legal-api/src/legal_api/reports/report.py +++ b/legal-api/src/legal_api/reports/report.py @@ -38,7 +38,7 @@ ) from legal_api.models.business import ASSOCIATION_TYPE_DESC from legal_api.reports.registrar_meta import RegistrarInfo -from legal_api.services import MinioService, VersionedBusinessDetailsService +from legal_api.services import MinioService, VersionedBusinessDetailsService, flags from legal_api.utils.auth import jwt from legal_api.utils.formatting import float_to_str from legal_api.utils.legislation_datetime import LegislationDatetime @@ -258,6 +258,9 @@ def _get_template_data(self): self._set_meta_info(filing) self._set_registrar_info(filing) self._set_completing_party(filing) + + filing['enable_new_ben_statements'] = flags.is_on('enable-new-ben-statements') + return filing def _format_par_value(self, filing):