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

Implement logic for updating Item fields when Piece was changed

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open (View Workflow)
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Template:
    • Development Team:
      Thunderjet

      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

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases