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

Implement logic for updating Item fields when Piece was changed

    XMLWordPrintable

Details

    • Thunderjet/Firebird Back-end Story Template
    • ACQ Sprint 132, ACQ Sprint 133
    • 3
    • Thunderjet
    • Lotus R1 2022

    Description

      Purpose/Overview:
      Item fields need to be updated (displayOnHolding, enumeration, chronology, discoverySuppress) when Piece was changed.

      Requirements/Scope:

      1. Updated fields (displayOnHolding, enumeration, chronology, discoverySuppress) from Piece should be reflected in the Item

      Approach:
      1. Update Item by calling inventory using REST call : org.folio.service.pieces.PieceService#updatePieceRecord

      1.1. Create new class org.folio.service.pieces.PieceUpdateFlowManager (contains all business logic for updating piece), if it not created before.
      1.2. Create holder for storing intermediate data, which will be used in the async future flow), if it not created before. Example org.folio.models.pieces.PieceCreationHolder
      1.3. Add logic to update fields (displayOnHolding, enumeration, chronology, discoverySuppress) from Piece should be reflected in the Item

      Acceptance criteria:

      • Update Piece logic implemented
      • Unit tests
      • API tests

      TestRail: Results

        Attachments

          1. Orders_API.PNG
            151 kB
            Artsem Churakou

          Issue Links

            Activity

              People

                artsem_churakou Artsem Churakou
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases