Skip to content

Filings UI: COOP AR filing should reject invalid AGM date #28376

Closed

Description

@severinbeauvais

Problem Statement:

  • For Cooperatives, the effective date of an Annual Report is the reported AGM date.
  • The AGM date for an Annual Report cannot be earlier than an already reported AGM date.
  • image.png

How to Replicate:

  • Select a Cooperative that has at least two outstanding Annual Reports.
  • File the AR's.
  • Enter an AGM date for the older AR.
  • Enter an older AGM date for the newer AR.

How To Fix:

  • There should already be a "Last AGM Date" in LEAR database.
  • When a new AR is filed, verify in the UI that:
    • AGM date entered is not earlier than Last AGM Date on file

NOTE for @OlgaPotiagalova

  • If users use the RCM rules (Rules of Common Sense) this might not be a real pressing issue.
  • Do we have the cycles now to put a significant amount of effort into COOP work?

NOTE for Everyone

  • If the users make an honest mistake entering the first AGM date, and then enter a second AGM date conflicting with the first one, the filing would be blocked, and it would result in an Ops ticket.
    ================================================================================

Here is a sample URL for an AR filing:
https://test.business.bcregistry.gov.bc.ca/CP3545781/annual-report?accountid=1999&businessid=CP3545781&filingId=0&arFilingYear=2022

As you can see, the AR filing year is provided. However, there is no check that this is valid. This may result in something like this:

image.png

As you can wee, the 2022 AR reports an effective date of Apr 4, 2023, while the 2023 AR reports an effective date of Mar 1, 2023 -- one month earlier. This is clearly invalid.

A check should be implemented in the AR filing (UI) to prevent an invalid filing year in the URL.

Activity

  1. added
    bug
    Entities Team
    on May 9, 2025
  2. severinbeauvais commented on May 9, 2025

    @severinbeauvais
    CollaboratorAuthor

    @vysakh-menon-aot Any idea how the Legal API allowed an invalid AR effective date? Do we need a Legal API ticket to catch this?

  3. changed the title [-]Filings UI: AR filing should reject invalid AR [/-] [+]Filings UI: AR filing should reject invalid AR filing date[/+] on May 9, 2025
  4. changed the title [-]Filings UI: AR filing should reject invalid AR filing date[/-] [+]Filings UI: AR filing should reject invalid AR Filing Year[/+] on May 9, 2025
  5. vysakh-menon-aot commented on May 9, 2025

    @vysakh-menon-aot
    Contributor

    We need to investigate this. We have validation in legal-api (https://github.com/bcgov/lear/blob/main/legal-api/src/legal_api/services/filings/validations/annual_report.py#L53), not sure how it got processed

  6. changed the title [-]Filings UI: AR filing should reject invalid AR Filing Year[/-] [+]Filings UI: COOP AR filing should reject invalid AR Filing Year[/+] on May 15, 2025
  7. vikas-gov commented on May 15, 2025

    @vikas-gov
    Collaborator

    @Mihai-QuickSilverDev to review and confirm the expectation for AR filing dates for coops.

  8. changed the title [-]Filings UI: COOP AR filing should reject invalid AR Filing Year[/-] [+]Filings UI: COOP AR filing should reject invalid AGM date[/+] on May 29, 2025
  9. severinbeauvais commented on Jun 2, 2025

    @severinbeauvais
    CollaboratorAuthor

    @bobdev-94 , please check if you can reproduce this, and try to determine why the UI allows it. Is a check missing? Is Legal API not providing a needed value? Etc.

  10. severinbeauvais commented on Jun 6, 2025

    @severinbeauvais
    CollaboratorAuthor

    Bobby, were you able to reproduce this?

  11. bobdev-94 commented on Jun 12, 2025

    @bobdev-94

    Hi @severinbeauvais

    I was able to reproduce this issue, and fixed it in the UI.
    If you are okay, I am going to create the PR

  12. severinbeauvais commented on Jun 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    Yes, please create a PR.

  13. riyazuddinsyed commented on Jun 25, 2025

    @riyazuddinsyed
    Contributor

    Working as expected, verified in test. Identifier used: CP3545836.
    Screen Shot 2025-06-25 at 2.11.40 PM.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities TeamPriority3bugprod defect

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions