Repository navigation
Closed
Labels
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end features
Description
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.
Metadata
Metadata
Assignees
Labels
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end features
Activity
gunanagar commentedon May 1, 2026
@rsagpariya - Pls test this ticket.
rsagpariya commentedon May 4, 2026
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.
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.
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.
rsagpariya commentedon May 4, 2026
@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!
loneil commentedon May 5, 2026
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.
rsagpariya commentedon May 5, 2026
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.