Skip to content

Filer: Accommodate migrated additional currency on edits #33224

Closed

Description

@loneil

As a BCROS user filing an Alteration or Correction (Transition?) for a migrated company that has grandfathered in OTHER currency types with an entered currency_additional (rare it turns out from Colin analysis), I want the business-filer not to blank out this field if dealing with existing share structures.


Filer drops currency_additional on write (alteration + correction)

Fix: add currency_additional=share_class_info.get("currencyAdditional") in both create_share_class and update_share_class. The UI already sends null when currency ≠ OTHER.

  • Alteration (shares.py:76-90): update_share_structure calls delete_existing_shares then rebuilds every class via create_share_class. Even if the filer leaves an OTHER class alone (user never opened it; UI validator never fires), the DB row is dropped and recreated without currency_additional → silent data loss of the grandfathered free-text value. currency is still 'OTHER', but 'Bitcoin' (or whatever) is gone.
  • Corp correction (shares.py:99-129): For classes that exist in the DB, update_share_class is called. It sets currency = 'CAD' when user swapped from OTHER → CAD, but never nulls currency_additional. Result: stale currency_additional = 'Bitcoin' persists on a CAD class. Not visible in the edit UI (it hides currencyAdditional unless currency === 'OTHER'), but it is returned by ShareClass.json and may leak into other consumers / generated documents.

QA Notes
Use a "migrated" (or can test with a manual edited) company with OTHER currency types an and additional currency

  • Ensure an edit filing where you don't change a OTHER currency still files through fully (so pay and complete filing and check resultant company data after processing). Can add a new additional share class or something. Check share structure is as expected
  • Separately, Edit a company with OTHER currency shares where you change from OTHER to a valid (like CAD) currency and ensure filing completes through. The Additional Currency column in the DB should get cleared out in this case after the filing.

Activity

  1. added
    Entities Team
    on Apr 24, 2026
  2. self-assigned this
    on Apr 25, 2026
  3. gunanagar commented on May 1, 2026

    @gunanagar
    Collaborator

    @rsagpariya - Pls test this ticket.

  4. self-assigned this
    on May 1, 2026
  5. rsagpariya commented on May 4, 2026

    @rsagpariya
    Collaborator

    Verified on the TEST environment:

    • Created a new corporation and added a share structure. The OTHER currency option is no longer available in the dropdown. Edit and Alteration filings were also verified—OTHER currency is not showing, working as expected.

    • Screenshot 2026-05-04 120153.png
    • Verified using a company provided by Colin where OTHER currency already existed. Attempted to add a new share to that structure, then filed and paid the fees. The OTHER currency option does not appear in the currency dropdown, as expected.

    • Screenshot 2026-05-04 120352.png
    • Updated an existing share class from OTHER currency to CAD, then filed and paid the fees. A message is displayed indicating that OTHER currency will be removed going forward. The dropdown no longer shows the OTHER currency option. After changing to a valid currency, the filing completes successfully and is reflected correctly in the alteration details.

    • Screenshot 2026-05-04 120452.png
  6. rsagpariya commented on May 4, 2026

    @rsagpariya
    Collaborator

    @loneil , I don’t have DB access yet, but I verified this using existing data. Do you think we also need to verify it at the database level, or should this be sufficient? Please let me know your thoughts. Thanks!

  7. loneil commented on May 5, 2026

    @loneil
    CollaboratorAuthor

    Don't necessarily need to check into the database. Can go back to the Alteration (for example) and see current share structure data after a filing completes.

  8. rsagpariya commented on May 5, 2026

    @rsagpariya
    Collaborator

    I verified this by changing values directly in the database. For example, I set the currency to OTHER and the additional currency to Bitcoin. After that, I edited it from the front end, and it is working as expected. The OTHER option is not appearing. When I change it to a valid currency, it saves and displays correctly.

    • Screenshot 2026-05-05 155754.png

    Screenshot 2026-05-05 160103.png

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

Metadata

Metadata

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions