-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
20951 Added support for continuation in entity types #761
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
|
@@ -40,6 +40,12 @@ export class CommonMixin extends Vue { | |
case EntityTypes.SP: return 'BC Sole Proprietorship' | ||
case EntityTypes.UL: return 'BC Unlimited Liability Company' | ||
|
||
// Continuation In Entity Types: | ||
case EntityTypes.C: return 'Continuation In (BC Limited Company)' | ||
case EntityTypes.CBEN: return 'Continuation In (Benefit Company)' | ||
case EntityTypes.CCC: return 'Continuation In (BC Community Contribution Company)' | ||
case EntityTypes.CUL: return 'Continuation In (BC Unlimited Liability Company)' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be honest, I think these cases don't get used, because as far as Namerequest UI is concerned, the subject NR is for a "BC Benefit Company" (for example), not a CBEN. I think only LEAR cares that this is a continued in benefit company. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PS - I have asked Naveen to confirm with the business that the NR should appear as a "BC Benefit Company" (as per the screenshot below) even though, internally, LEAR knows it as a CBEN. We will have an answer tomorrow. |
||
|
||
// XPRO Entity Types: | ||
case EntityTypes.XCR: return 'Extraprovincial Limited Company' | ||
case EntityTypes.XUL: return 'Extraprovincial Unlimited Liability Company' | ||
|
@@ -60,9 +66,13 @@ export class CommonMixin extends Vue { | |
entityTypeToCorpType (entityType: EntityTypes): CorpTypeCd { | ||
switch (entityType) { | ||
case EntityTypes.BC: return CorpTypeCd.BENEFIT_COMPANY | ||
case EntityTypes.C: return CorpTypeCd.CONTINUE_IN | ||
case EntityTypes.CBEN: return CorpTypeCd.BEN_CONTINUE_IN | ||
case EntityTypes.CC: return CorpTypeCd.BC_CCC | ||
case EntityTypes.CCC: return CorpTypeCd.CCC_CONTINUE_IN | ||
case EntityTypes.CP: return CorpTypeCd.COOP | ||
case EntityTypes.CR: return CorpTypeCd.BC_COMPANY | ||
case EntityTypes.CUL: return CorpTypeCd.ULC_CONTINUE_IN | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as above: I think these (and the 4 below) aren't used, but I added them for completeness. |
||
case EntityTypes.DBA: return CorpTypeCd.SOLE_PROP // same as FR | ||
case EntityTypes.FI: return CorpTypeCd.FINANCIAL | ||
case EntityTypes.FR: return CorpTypeCd.SOLE_PROP | ||
|
@@ -93,11 +103,14 @@ export class CommonMixin extends Vue { | |
*/ | ||
corpTypeToEntityType (entityType: CorpTypeCd): EntityTypes { | ||
switch (entityType) { | ||
case CorpTypeCd.BEN_CONTINUE_IN: return EntityTypes.CBEN | ||
case CorpTypeCd.BENEFIT_COMPANY: return EntityTypes.BC | ||
case CorpTypeCd.BC_CCC: return EntityTypes.CC | ||
case CorpTypeCd.BC_COMPANY: return EntityTypes.CR | ||
case CorpTypeCd.BC_ULC_COMPANY: return EntityTypes.UL | ||
case CorpTypeCd.CCC_CONTINUE_IN: return EntityTypes.CCC | ||
case CorpTypeCd.COOP: return EntityTypes.CP | ||
case CorpTypeCd.CONTINUE_IN: return EntityTypes.C | ||
case CorpTypeCd.EXTRA_PRO_A: return EntityTypes.XCR | ||
case CorpTypeCd.FINANCIAL: return EntityTypes.FI | ||
case CorpTypeCd.PARTNERSHIP: return EntityTypes.GP | ||
|
@@ -108,6 +121,7 @@ export class CommonMixin extends Vue { | |
case CorpTypeCd.PARISHES: return EntityTypes.PAR | ||
case CorpTypeCd.SOCIETY: return EntityTypes.SO | ||
case CorpTypeCd.SOLE_PROP: return EntityTypes.FR | ||
case CorpTypeCd.ULC_CONTINUE_IN: return EntityTypes.CUL | ||
case CorpTypeCd.XPRO_COOP: return EntityTypes.XCP | ||
case CorpTypeCd.XPRO_CORPORATION: return EntityTypes.XCR | ||
case CorpTypeCd.XPRO_LIM_PARTNR: return EntityTypes.XLP | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This getter is already imported via a mixin so declaring it here displays an error in VS Code. However, I like to keep the declaration here so that it's explicit that this code file uses this getter.