Skip to content

Commit

Permalink
- app version = 5.5.11
Browse files Browse the repository at this point in the history
- imported latest shared enums
- updated conversion enum keys
- updated BEN conversion logic (WIP)
- sorted Conversion Types list data
- added BEN -> CCC conversion
- updated online alteration logic
  • Loading branch information
Severin Beauvais committed Nov 6, 2024
1 parent d38a82e commit f56dec3
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 41 deletions.
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-request",
"version": "5.5.10",
"version": "5.5.11",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand All @@ -17,7 +17,7 @@
"@babel/compat-data": "^7.24.4",
"@bcrs-shared-components/breadcrumb": "2.1.24",
"@bcrs-shared-components/corp-type-module": "1.0.15",
"@bcrs-shared-components/enums": "1.1.13",
"@bcrs-shared-components/enums": "1.1.15",
"@bcrs-shared-components/folio-number-input": "^1.1.44",
"@bcrs-shared-components/genesys-web-message": "1.0.0",
"@bcrs-shared-components/interfaces": "1.0.67",
Expand Down
16 changes: 8 additions & 8 deletions app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ export default class BusinessLookupFetch extends Mixins(CommonMixin, SearchMixin
if (this.getSearchBusiness) {
// set the from business for alteration (conversion)
this.setOriginEntityTypeCd(this.getSearchBusiness.legalType)
// *** TODO: the comment below is no longer true
// BENs can now convert to BC or CCC
// special case if the from business is BEN
// set conversionType and entityTypeCd because there's only one alteration type for it
if (this.isBenBusiness) {
this.setConversionType(NrRequestTypeCodes.CONVERT_CORP)
this.setConversionType(NrRequestTypeCodes.CONVERT_BEN_TO_BC)
this.setEntityTypeCd(EntityTypes.CR)
}
} else {
Expand Down
65 changes: 38 additions & 27 deletions app/src/list-data/conversion-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,71 +3,82 @@ import { ConversionTypesI } from '@/interfaces/models'

export const ConversionTypes: ConversionTypesI[] = [
{
desc: 'Limited Company to an Unlimited Liability Company',
text: 'Limited Company to an Unlimited Liability Company',
entity_type_cd: EntityTypes.UL,
origin_entity_type_cd: EntityTypes.BC,
desc: 'Limited Company to a Benefit Company',
text: 'Limited Company to a Benefit Company',
entity_type_cd: EntityTypes.BC, // Benefit Company (namex)
origin_entity_type_cd: EntityTypes.BC, // BC Limited (lear)
blurbs: [
'Alter business type from a limited company to an unlimited liability company.'
'Alter business type from a limited company to a benefit company.'
],
value: NrRequestTypeCodes.CONVERT_ULC,
rank: 1,
shortlist: true
value: NrRequestTypeCodes.CONVERT_BC_TO_BEN,
shortlist: false
},
{
desc: 'Limited Company to a Community Contribution Company',
text: 'Limited Company to a Community Contribution Company',
entity_type_cd: EntityTypes.CC,
origin_entity_type_cd: EntityTypes.BC,
entity_type_cd: EntityTypes.CC, // CCC (namex)
origin_entity_type_cd: EntityTypes.BC, // BC Limited (lear)
blurbs: [
'Alter business type from a limited company to a community contribution company.'
],
value: NrRequestTypeCodes.CONVERT_CCC,
value: NrRequestTypeCodes.CONVERT_BC_TO_CCC,
rank: 2,
shortlist: true
},
{
desc: 'Limited Company to a Benefit Company',
text: 'Limited Company to a Benefit Company',
entity_type_cd: EntityTypes.BC,
origin_entity_type_cd: EntityTypes.BC,
desc: 'Limited Company to an Unlimited Liability Company',
text: 'Limited Company to an Unlimited Liability Company',
entity_type_cd: EntityTypes.UL, // ULC (namex)
origin_entity_type_cd: EntityTypes.BC, // BC Limited (lear)
blurbs: [
'Alter business type from a limited company to a benefit company.'
'Alter business type from a limited company to an unlimited liability company.'
],
value: NrRequestTypeCodes.CONVERT_BEN,
shortlist: false
value: NrRequestTypeCodes.CONVERT_BC_TO_ULC,
rank: 1,
shortlist: true
},
{
desc: 'Benefit Company to a Limited Company',
text: 'Benefit Company to a Limited Company',
entity_type_cd: EntityTypes.CR,
origin_entity_type_cd: EntityTypes.BEN,
entity_type_cd: EntityTypes.CR, // BC Limited (namex)
origin_entity_type_cd: EntityTypes.BEN, // Benefit Company (lear)
blurbs: [
'Alter business type from a benefit company to a limited company.'
],
value: NrRequestTypeCodes.CONVERT_CORP,
value: NrRequestTypeCodes.CONVERT_BEN_TO_BC,
shortlist: false
},
{
desc: 'Benefit Company to a Community Contribution Company',
text: 'Benefit Company to a Community Contribution Company',
entity_type_cd: EntityTypes.CC, // CCC (namex)
origin_entity_type_cd: EntityTypes.BEN, // Benefit Company (lear)
blurbs: [
'Alter business type from a benefit company to a community contribution company.'
],
value: NrRequestTypeCodes.CONVERT_BEN_TO_CCC,
shortlist: false
},
{
desc: 'Unlimited Liability Company to a Limited Company',
text: 'Unlimited Liability Company to a Limited Company',
entity_type_cd: EntityTypes.CR,
origin_entity_type_cd: EntityTypes.ULC,
entity_type_cd: EntityTypes.CR, // BC Limited (namex)
origin_entity_type_cd: EntityTypes.ULC, // ULC (lear)
blurbs: [
'Alter business type from an unlimited liability company to a limited company.'
],
value: NrRequestTypeCodes.CONVERT_ULCB,
value: NrRequestTypeCodes.CONVERT_ULC_TO_BC,
shortlist: false
},
{
desc: 'Unlimited Liability Company to a Benefit Company',
text: 'Unlimited Liability Company to a Benefit Company',
entity_type_cd: EntityTypes.BC,
origin_entity_type_cd: EntityTypes.ULC,
entity_type_cd: EntityTypes.BC, // Benefit Company (namex)
origin_entity_type_cd: EntityTypes.ULC, // ULC (lear)
blurbs: [
'Alter business type from an unlimited liability company to a benefit company.'
],
value: NrRequestTypeCodes.CONVERT_ULBE,
value: NrRequestTypeCodes.CONVERT_ULC_TO_BEN,
shortlist: false
}
]
7 changes: 4 additions & 3 deletions app/src/mixins/common-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ export class CommonMixin extends Vue {
/** Returns true if the specified alteration NR is allowed to be done online. */
isAlterOnline (type: NrRequestTypeCodes): boolean {
return !(
type === NrRequestTypeCodes.CONVERT_BEN ||
type === NrRequestTypeCodes.CONVERT_CORP ||
type === NrRequestTypeCodes.CONVERT_ULBE
type === NrRequestTypeCodes.CONVERT_BC_TO_BEN ||
type === NrRequestTypeCodes.CONVERT_BEN_TO_BC ||
type === NrRequestTypeCodes.CONVERT_BEN_TO_CCC ||
type === NrRequestTypeCodes.CONVERT_ULC_TO_BEN
)
}

Expand Down

0 comments on commit f56dec3

Please sign in to comment.