Uploaded image for project: 'ui-inventory'
  1. ui-inventory
  2. UIIN-1398

Add option to remove leading zeroes from Inventory HRIDs

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      Folijet Sprint 106
    • Story Points:
      3
    • Development Team:
      Folijet

      Description

      Purpose: Current Inventory HRID settings allow for 11 numbers, which may or may not be preceded by alpha prefixes. Current standard is to always pad the number with leading zeroes. Some libraries want the option to remove leading zeroes from Inventory HRIDs. In some cases, they want to continue the numbering structure from their previous system. In other cases, if a library does not use HRID prefixes, there is a risk that leading zeroes will be stripped accidentally by other systems or processes.

      As a staff person working with Inventory records
      I want to have an option to retain or remove the leading zeroes for HRIDs
      So that I can customize the settings as needed for my library's needs

      Scenarios

      1. Scenario 1
        • Given the Settings/Inventory/Instances, Holdings, Items/HRID handling
        • When viewing the details
        • Then remove the stray hyphens appearing above the "Start with" field of each record type
      2. Scenario 2
        • Given the Settings/Inventory/Instances, Holdings, Items/HRID handling
        • When viewing the details
        • Add a checkbox as follows
          • Text: Remove leading zeroes from HRID
          • Default to unchecked
      3. Scenario 3 [this is the current, default behavior]
        • Given the new checkbox
        • When unchecked (default)
        • Then Display the HRID "Start with" as an 11-digit number, with its leading zeroes
        • And when assigning new HRIDs, assign them as 11-digit numbers, with leading zeroes. Include the specified prefix, if there is one.
      4. Scenario 4
        • Given the new checkbox
        • When checked
        • Then Display the HRID "Start with" as a number with no leading zeroes (e.g. if the tenant wants to start with 1, the it would be displayed as 1 instead of 00000000001; if the library wants to start with 500,000, it would be displayed as 500000 instead of 00000500000)
        • And when assigning new HRIDs, assign them as numbers without leading zeroes. Include the specified prefix, if there is one.
      5. Scenario 5
        • Ensure this story passes Accessibility testing
      6. Scenario 6
        • Ensure automated testing coverage for this new code is 80% plus and confirm with screenshot

      See attached screenshot

      NOTES

      • This will not affect any HRIDs previously assigned to Inventory records. It will only affect records created after the settings are updated.
      • MOD story needed for scenario 3-4's logic
      • Any migration script needed? No

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Mariia_Aloshyna Mariia Aloshyna
                Reporter:
                abreaux Ann-Marie Breaux
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases