From f6f566de946dd222f2f0917e7fe83bb6c284a75b Mon Sep 17 00:00:00 2001 From: Hrvoje Fekete Date: Thu, 28 Nov 2024 16:12:40 -0800 Subject: [PATCH] 24638 - fix: incorrect name in amalgamation application (#87) * 24638 - fix: incorrect name in amalgamation application * 24638 - chore: add additional translations for company types. --- src/interfaces/business-i.ts | 1 + src/lang/en.json | 3 +++ src/stores/businessBootstrap.ts | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/interfaces/business-i.ts b/src/interfaces/business-i.ts index 179edde..75434bb 100644 --- a/src/interfaces/business-i.ts +++ b/src/interfaces/business-i.ts @@ -57,6 +57,7 @@ export interface BusinessWarningI { data?: any // optional extra properties (eg, amalgamationDate) } +/** The Business object from the Legal API. */ // comments come from business-filings-ui project ApiBusinessIF interface export interface BusinessI extends SlimBusinessI { adminFreeze: boolean diff --git a/src/lang/en.json b/src/lang/en.json index c16d407..c6682a0 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -118,12 +118,15 @@ "registrationNum": "Registration Number", "legalTypes": { "CC": "BC Community Contribution Company", + "CCC": "BC Community Contribution Company", "BEN": "BC Benefit Company", + "CBEN": "BC Benefit Company", "BC": "BC Limited Company", "CP": "BC Cooperative Association", "SP": "BC Sole Proprietorship", "GP": "BC General Partnership", "ULC": "BC Unlimited Liability Company", + "CUL": "BC Unlimited Liability Company", "C": "BC Limited Company", "undefined": "N/A" } diff --git a/src/stores/businessBootstrap.ts b/src/stores/businessBootstrap.ts index 9696879..78f7718 100644 --- a/src/stores/businessBootstrap.ts +++ b/src/stores/businessBootstrap.ts @@ -15,7 +15,7 @@ export const useBcrosBusinessBootstrap = defineStore('bcros/businessBootstrap', const bootstrapLegalType = computed(() => bootstrapFiling.value?.filing.business.legalType) const bootstrapFilingType = computed(() => bootstrapFiling.value?.filing.header.name) const bootstrapFilingStatus = computed(() => bootstrapFiling.value?.filing.header.status) - + const bootstrapNr = computed(() => bootstrapFiling.value?.filing[bootstrapFilingType.value]?.nameRequest) const bootstrapNrNumber = computed(() => bootstrapFiling.value?.filing[bootstrapFilingType.value]?.nameRequest.nrNumber) const bootstrapFilingDisplayName = computed(() => { @@ -101,6 +101,8 @@ export const useBcrosBusinessBootstrap = defineStore('bcros/businessBootstrap', if (bootstrapNrNumber.value) { // get approved name from the linked name request return linkedNr.value?.names.find(val => val.state === NameRequestStateE.APPROVED)?.name + } else if (bootstrapNr?.value?.legalName) { + return bootstrapNr.value.legalName } else { // return the numbered name description if (bootstrapFilingType.value === FilingTypes.AMALGAMATION_APPLICATION) {