-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[PM-13999] show estimated tax for taxable countries #12245
[PM-13999] show estimated tax for taxable countries #12245
Conversation
…r-Clients' into PM-14892-Sales-Tax-Estimation-For-Clients
…9-Show-estimated-tax-for-taxable-countries
…M-13999-Show-estimated-tax-for-taxable-countries
cd566de
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.
Feedback is non-blocking because I'm not a code owner, but worth checking I think.
validate = (): boolean => { | ||
this.formGroup.markAllAsTouched(); | ||
return this.formGroup.valid; | ||
}; | ||
validate(): boolean { | ||
if (this.formGroup.dirty) { | ||
this.formGroup.markAllAsTouched(); | ||
return this.formGroup.valid; | ||
} else { | ||
return this.formGroup.valid; | ||
} | ||
} |
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.
🤔 I don't think component library forms require these kinds of workarounds (markAllAsTouched
). You should just be able to check the formgroup's valid state. Maybe double check whether it's necessary and ask the design team.
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-13999
📔 Objective
AC-2476-deprecate-stripe-sources-api
feature flag in both enabled/disabled state.📸 Screenshots
Bot postal code & country fields are required. Note that the checkbox to include a tax id is removed.
It also listens for additional fields, such as plan, billing interval, additional storage, additional seats, machine accounts, etc.
Tax id codes are validated by our backend using regular expressions to resolve the tax id type based on the selected country:
Error messages by Stripe are also handled now, example is not available.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes