Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-386

Create title with populated instanceId upon creation of poLine

    XMLWordPrintable

Details

    • ACQ Sprint 87
    • 1
    • Thunderjet

    Description

      Overview

      Title not created while creating order or order line

      Expected

      POST /orders/order-lines is updated as follows:

      if isPackage == true and an instanceId is provided → return an error
      if isPackage == false and an instanceId is provided → use the instanceId when creating the title record

      POST /orders/composite-orders is updated as follows:

      For each POL:
      if isPackage == true and an instanceId is provided → return an error
      if isPackage == false and an instanceId is provided → use the instanceId when creating the title record

      See https://wiki.folio.org/pages/viewpage.action?pageId=25729689#SupportingPackageOrders(WIP)-order-lines

      Background

      This is caused because mod-orders and mod-orders-storage use different schemas here... While the compossite-po-line schema still has an instanceId field, the poLine schema no longer does. Instead this information is captured in the associated title record.

      Acceptance Criteria

      • acq-models updated
      • The logic is implemented
      • Unit tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Andrei_Makaranka Andrei Makaranka
                siarhei_hrabko Siarhei Hrabko
                Andrei Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases