Closed leodube-aot closed 11 months ago
Update: Date validation, and specific section errors, have been implemented. Looks great, thanks!
This should probably throw an error, I think?
Also this?
OK, when I click File Now, the component shows an error, but I don't know what's incorrect:
@severinbeauvais Yeah you're correct, there should be more clear error handling. I'll get that fixed. The one field I can confirm we don't validate is the Intended AGM date (based on what Mihai has said), but perhaps at should still not allow dates in the past for that one.
Newest changes:
agmYear
cannot be before incorporation date, or in the future. Must also be 4 digits.prevAgmDate
cannot be before incorporation date, or in the future.intendedAgmDate
cannot be in the past/gcbrun
Temporary Url for review: https://business-filings-dev--pr-585-c2c631r7.web.app
LD says try: https://business-filings-dev--pr-585-c2c631r7.web.app/BC0871200?accountid=668
~Leo, does this PR complete everything for AGM Extensions? If not, what's left?~ answer is below
~Leo, should there be a check that the intended AGM date is not later than the due date? Maybe this wouldn't cause a validation error but could display the yellow box with some message. Check with Mihai and Yui.~ answer is below
@severinbeauvais I checked and there is one more formula to be added to the AGM extension calculation bcgov/entity#18579. Otherwise, this ticket has completed all the hooking up required.
For the intended date, Mihai's comment explains why we don't validate it.
Otherwise, this ticket has completed all the hooking up required.
Yeah, it looks that way -- thank you! But I am still unable to file an AGM extension. Do we know if this is solely an API issue?
Yeah, it looks that way -- thank you! But I am still unable to file an AGM extension. Do we know if this is solely an API issue?
I think it's just an API issue. The saveFiling() function in AgmExtension throws an axios error: "Request failed with status code 422" when "File and Pay" is clicked, which prevents redirection to the payment page.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Issue #: /bcgov/entity#18273 and /bcgov/entity#18558
Description of changes:
alreadyExtended
andrequestExpired
forAgmExtensionEvaluation.vue
.extensionRequestValid
and emit result to parent component.evaluateResult
flag to only show extension request warning box and duration of extension text field on valid extension request.checkEligibility()
function.ExtensionRequest
component to cover every scenario.AgmExtensionEvaluation
date-utilities
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the business-filings-ui license (Apache 2.0).