PO locations are not changed after updating the item ownership

Description

Overview: After updating the item ownership the POL locations related to that item is not updated. It still displays original locations and quantities which do not reflect the actual state of items related to POL.

Preconditions:

  • "Allow user to select locations from other affiliations for central orders" option should be checked (active) in "Settings" -> "Consortium manager" -> "Central ordering" in Central tenant

  • An order in "Open" status with one PO line has been created in Central tenant:

    • "Receiving workflow" is set as "Synchronized order and receipt quantity"

    • Quantity = 3

    • Locations: holding in Member 1 tenant (e.g. "M1-Loc") with quantity 2, holding in Member 2 tenant with quantity 1(e.g. "M2-Loc1")

    • "Create inventory" is set as "Instance, Holdings, Item"

  • Authorized user with "Staff" type has affiliations in the following tenants:

    • Central

    • Member 1

    • Member 2

  • Same user has the following permissions in Central tenant:

    • Inventory: All permissions

    • Orders: Can view Orders and Order lines

    • Receiving: View

    • Settings (Consortia): Can view network ordering

  • Same user has the following permissions in Member 1 and Member 2 tenants:

    • Inventory: All permissions

    • Inventory: Update ownership

  • Same user is logged in Member 1 tenant

Steps to reproduce:

  1. Go to "Inventory" app on Instance details pane related to title selected in POL from Preconditions

  2. Expand holding from POL (e.g. "M1-Loc")

  3. Click on either item barcode hyperlink

  4. Update ownership for selected item:

    • Click "Actions" button

    • Select "Update ownership" option

    • Select "Member 2" tenant in "Affiliation" dropdown

    • Click "Create new holdings for location" link

    • Select any available holding (e.g. "M2-Loc2")

    • Click "Update" button

    • Click "Confirm" button on appeared "Update ownership of items" confirmation modal

  5. Switch active affiliation to Central tenant

  6. Go to "Orders" app on PO line from Preconditions details pane

Expected result: Locations accordion contains three records:

  1. Member 1 - <Location selected during POL creation for Member 1 tenant> with quantity 1 (e.g. "M1-Loc")

  2. Member 2 - <Location selected during POL creation for Member 2 tenant> with quantity 1 (e.g. "M2-Loc1")

  3. Member 2 - <Location selected during ownership update on step #4> with quantity 1 (e.g. "M2-Loc2")

Actual result: Locations accordion contains two records:

  1. Member 1 - <Location selected during POL creation for Member 1 tenant> with quantity 2 (e.g. "M1-Loc")

  2. Member 2 - <Location selected during POL creation for Member 2 tenant> with quantity 1 (e.g. "M2-Loc1")

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

1

Checklist

hide

Activity

Show:

Dennis Bridges October 31, 2024 at 8:10 PM

Test successful in folio-testing-ecs-snapshot.

Dimitri Gogiashvili October 31, 2024 at 12:42 PM

Tested on https://folio-testing-ecs-snapshot-cs00000int.ci.folio.org/ works as expected.
please review. Thanks!

Boburbek Kadirkhodjaev October 30, 2024 at 3:37 PM

Included in the merged PR: POL locations update, POL search location ids update, POL & Piece outbox fixes

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Thunderjet

RCA Group

Not a bug

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 25, 2024 at 2:12 PM
Updated November 12, 2024 at 8:43 AM
Resolved October 31, 2024 at 8:10 PM
TestRail: Cases
TestRail: Runs