Skip to content

6a - API - Shares - PAR Values: #32532

Closed
Closed

Description

@mstanton1
  • apply same restriction from the UI
  • may need to change data type dependent upon what is done in the UI

Note: If the data type needs to change , this ticket will need to be implemented first.


QA Notes [LO: 2026-05-11]

  • Check adding share structure for new business and editing existing business that typical values for Par Value are validated, accepted, and file through using the UIs
  • Ensure that invalid values attempted through direct API calls (postman) fail as expected for Incorporations and Alterations
    • Empty/null/0/negative/NaN/booleans/etc
    • More than 17 significant digits
    • Plain-decimal form > 38 chars
  • Share classes with hasParValue: false should ignore par value entirely.

Activity

  1. added
    Entities Team
    on Feb 19, 2026
  2. loneil commented on Feb 19, 2026

    @loneil
    Collaborator

    image.png

    (in dev at least), so probably can't accommodate 20 in the Lear DB without switching to Numeric?
    https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-FLOAT

  3. severinbeauvais commented on Feb 25, 2026

    @severinbeauvais
    Collaborator

    On hold until the exact requirements are determined -- see #3837.

  4. severinbeauvais commented on Mar 2, 2026

    @severinbeauvais
    Collaborator

    This was discussed with me, Melissa, Mihai and Dylan on Feb 27. We decided:

    • leave number of shares as a whole number
    • add support for the long par value from COLIN (0.00214505608506776)
    • test E2E so the modernized NOAs look like the COLIN NOAs
  5. mstanton1 commented on Mar 3, 2026

    @mstanton1
    CollaboratorAuthor

    Removed on hold given discussion and decision in comment above.

  6. severinbeauvais commented on Mar 3, 2026

    @severinbeauvais
    Collaborator

    NOTE: the requirements have been updated. Read comments below this one. For one thing, we don't want to display scientific notation (ever).

    Update

    To meet the current requirements (summarized in a comment in #31894), I believe:

    • we don't need to change the schema (par value is still a Number)
    • we don't need to change the db schema
    • we only need to update the outputs (ie, NOA)

    Rules implemented in the UI:

    • par values in CAD, USD or AUD have a leading $ and ...
      1. numbers less than 1e-12 are displayed in scientific notation, eg, 1.0E-13
      2. numbers less than 1e7 (eg, 10 Million) are displayed with at least 2 decimal places (or more if the number has them), eg 99,999,999.99
      3. numbers less than 1e10 are displayed with no decimal places (unless it has them), eg, 10,000,000
      4. otherwise (ie, numbers >= 1e10) are displayed in scientific notation, eg, 5.0E10
    • par values in other currencies are displayed using the default number formatting, eg, 1234567890123456 and 12345678.12345678

    Sample values in UI:

    image.png

  7. severinbeauvais commented on Mar 3, 2026

    @severinbeauvais
    Collaborator
  8. severinbeauvais commented on Mar 10, 2026

    @severinbeauvais
    Collaborator

    The business summary does not contain share structure data. However, the NOA does... Here's a sample.

    BC0888490 Notice Of Articles - 2026-03-04.pdf

    What I can pick out here are:

    • AUD (and possibly USD) should show currency symbol ($)
    • All values show at least one decimal place (".0" or ".4"), which looks weird. Should we display 2 decimal places (or more) for all CAD/AUD/USD values, regardless how large they are? @forgeuxGH5 Thoughts?
    • Long par values wrap, though it looks weird. @forgeuxGH5 Thoughts?
    • Long par values don't show grouping (eg, 1,000,000) but I think they should. @forgeuxGH5 Thoughts?
    • I don't know if Number of Shares displays correctly in all cases
  9. severinbeauvais commented on Mar 10, 2026

    @severinbeauvais
    Collaborator

    @dylan644 Can you please acquire some NOAs from COLIN for businesses with really long par values (and number of shares)? This is so we can show the same thing in BCROS. Thanks!

  10. loneil commented on May 11, 2026

    @loneil
    Collaborator

    I've moved checking over the outputs and addressing any changes needed in those to an Outputs ticket here:
    https://app.zenhub.com/workspaces/entities-team-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/33372

  11. gunanagar commented on May 21, 2026

    @gunanagar
    Collaborator

    Check adding share structure for new business and editing existing business that typical values for Par Value are validated, accepted, and file through using the UIs - PASS

    UI - Validation - PASS
    Screenshot 2026-05-21 at 11.07.09 AM.png

    Submitted - in UI

    Screenshot 2026-05-21 at 11.09.16 AM.png

  12. gunanagar commented on May 21, 2026

    @gunanagar
    Collaborator

    Ensure that invalid values attempted through direct API calls (postman) fail as expected for Incorporations and Alterations

    Empty/null/0/negative/NaN/booleans/etc

    Screenshot 2026-05-21 at 11.25.16 AM.png

    Screenshot 2026-05-21 at 11.26.04 AM.png

    Screenshot 2026-05-21 at 11.26.34 AM.png

    Screenshot 2026-05-21 at 11.28.01 AM.png

    Screenshot 2026-05-21 at 11.28.01 AM.png

  13. gunanagar commented on May 21, 2026

    @gunanagar
    Collaborator

    Share classes with hasParValue: false should ignore par value entirely. - Ignored and PASSED

    Screenshot 2026-05-21 at 11.29.01 AM.png

  14. self-assigned this
    on May 21, 2026
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