-
Notifications
You must be signed in to change notification settings - Fork 42
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
Incorporate now for named companies after NR is approved #627
Changes from all commits
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 |
---|---|---|
|
@@ -194,23 +194,17 @@ | |
:nrNum="nr && nr.nrNum" | ||
:approvedName="approvedName && approvedName.name" | ||
:emailAddress="nr && nr.applicants && nr.applicants.emailAddress" | ||
:showIncorporateNowButton="showIncorporateButton" | ||
:showRegisterButton="showRegisterButton" | ||
:disabled="disableUnfurnished" | ||
@registerYourBusiness="registerYourBusiness()" | ||
@incorporateRegisterYourBusiness="incorporateRegisterYourBusiness()" | ||
/> | ||
|
||
<NrNotApprovedGrayBox | ||
class="mt-5" | ||
v-if="showNrNotApprovedGrayBox" | ||
:nrNum="nr.nrNum" | ||
/> | ||
|
||
<!-- incorporate button --> | ||
<div class="mt-5 text-center" v-if="showIncorporateButton"> | ||
<v-btn id="INCORPORATE-btn" @click="handleButtonClick(NrAction.INCORPORATE)"> | ||
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. This button is now in the |
||
Incorporate Using This Name Request | ||
</v-btn> | ||
</div> | ||
</div> | ||
</transition> | ||
</template> | ||
|
@@ -417,15 +411,15 @@ export default class ExistingRequestDisplay extends Mixins( | |
*/ | ||
get showIncorporateButton (): boolean { | ||
return ( | ||
this.isBenefitCompany(this.nr) && | ||
this.actions.includes(NrAction.INCORPORATE) | ||
this.isSupportedEntity(this.nr) && | ||
this.nr.request_action_cd === NrRequestActionCodes.NEW_BUSINESS && | ||
NrState.APPROVED === this.nr.state | ||
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. We'll be showing the button if the current entity type is supported (from FF), new business, and if the NR has been approved. The 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. I think you can remove line 416 since line 417 will cover it. Where did you copy the "if approved" logic from? It may be complicated that this (ie, conditional approval). Not certain but asking if you've looked into it. 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. The logic here is almost similar to the I do agree with you on the first point. I was just using the similar condition to the existing one ( 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. Please call out for some extra testing on acceptable NR states to incorporate from (and/or confirm what's done in Auth Web for IA NRs). Otherwise, my concerns are satisfied here. 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. I don't think so. I took a look and this should be OK. Keep in mind that the component takes a prop that disables the button when the NR was approved but still in processing (5 minutes or so). |
||
) | ||
} | ||
/** True if the Register button should be shown. */ | ||
get showRegisterButton (): boolean { | ||
return this.isFirm(this.nr) && | ||
this.nr.request_action_cd && | ||
this.nr.request_action_cd === NrRequestActionCodes.NEW_BUSINESS && | ||
(NrState.APPROVED === this.nr.state || | ||
this.isConsentUnRequired) | ||
|
@@ -688,8 +682,8 @@ export default class ExistingRequestDisplay extends Mixins( | |
this.setConditionsModalVisible(true) | ||
} | ||
/** Called to register the business. */ | ||
async registerYourBusiness (): Promise<void> { | ||
/** Called to incorporate/register the business. */ | ||
async incorporateRegisterYourBusiness (): Promise<void> { | ||
// safety check | ||
if (!this.isNrApprovedOrConditional) return | ||
|
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.
Moving this function to CommonMixin. It makes sense since it'll come in handy for even further work later on.