Uploaded image for project: 'mod-orders-storage'
  1. mod-orders-storage
  2. MODORDSTOR-108

Add qualifier field to poLine->details->productIds[]

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 9.0.0
    • None
    • ACQ Sprint 73
    • 1
    • Thunderjet

    Description

      Overview

      As part of ISBN processing we need to be able to capture additional information about the product ID which is technically separate from the ID itself.

      For example, an instance might have the following ISBNs:

      9654938863 (print)
      9789654938877 ebook

      The entire string "9789654938860 (print)" will fail ISBN validation, so we need to strip it off in order to validate/convert the ISBN. However, we can't just throw the text after the ISBN number out as that information is needed to determine if you're ordering a particular volume, hard/soft cover, ebook, etc.

      ...
      "productIds": [
        {
          "value": "9789654938863",
          "identifierTypeId": "8261054f-be78-422d-bd51-4ed9f33c3422",
          "qualifier": "(print)"
        },
        {
          "value": "9789654938877",
          "identifierTypeId": "8261054f-be78-422d-bd51-4ed9f33c3422",
          "qualifier": "ebook"
        }
      ],
      ...
      

      It's advantageous to store this qualifier separately from the ISBN for a few reasons, including searching and that if we're outputting the order (EDI, PDF, etc.) we'll need the ID-only version.

      Approach

      Add a field the poLine->details->productIds schema: "qualifier" - string, optional, no default.

      The client (UI/GOBI/etc.) will be responsible for splitting ISBNs that include qualifiers into ID/qualifier and providing them as separate fields.

      Acceptance Criteria

      • Schema is updated
      • Example data is updated (only if needed)
      • Unit tests are updated
      • Orders is updated to use the new version of the schema from acq-models

      N.B. Separate stories will be handle the UI and GOBI aspects of this.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                cmcnally Craig McNally
                cmcnally Craig McNally
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases