User with no affiliation to the location in POL can not add pieces to the receiving title related to that POL

Description

Overview: If POL has location in Member 1 tenant, and we have an affiliations only in Central and Member 2 tenants, we are not able to add new pieces to that receiving title. Add piece form is available, but once we select holding, the field remains blank.

Preconditions:

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

    • Is package - NOT active

    • Workflow - Synchronized order and receipt quantity

    • Quantity - 1

    • Location - select in Member 1 tenant

    • Create inventory - Instance, Holding, Item

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

    • Central

    • Member 2

  • User has the following permissions in Central tenant:

    • Inventory: All permissions (in both tenants)

    • Orders: Can view Orders and Order lines

    • Receiving: View, edit, create

    • Settings (Consortia): Can view network ordering

  • User is logged in Central tenant and goes to "Receiving" app

Steps to reproduce:

  1. Go to the title related to POL from Preconditions details pane

  2. Click "Actions" button in "Expected" accordion on "<Title name>" pane and select "Add piece" option

  3. Expand "Affiliation" dropdown

  4. Select "Member 2" tenant

  5. Choose holding from selected tenant

Expected result: Name (code) field is populated with selected holding and user is able to save piece

Actual result: Name (code) field remains empty and user is not able to save the piece. 401 response: “Invalid token: User with id bf898b14-5bf8-4bff-a43b-1b54e5ab8561 does not exist”

Additional information:

  • Issue is reproducible for both independent and synchronized receiving workflows

  • Issue is reproducible until the location that user is not affiliated with is removed from the POL

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

Activity

Show:

Joseph Reimers October 24, 2024 at 3:02 PM

Works as expected

Dimitri Gogiashvili October 24, 2024 at 12:56 PM

Tested on https://folio-dev-thunderjet-consortium.ci.folio.org/ works as expected.
please review. Thanks!

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

Ramsons (R2 2024)

RCA Group

Implementation coding issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created October 10, 2024 at 6:53 AM
Updated November 12, 2024 at 7:55 AM
Resolved October 24, 2024 at 3:02 PM
TestRail: Cases
TestRail: Runs