ECS | PO line statuses became "Pending" when user without appropriate affiliation is trying to unopen order

Description

Preconditions:

  1. "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

  2. Ongoing order in "Open" status with one PO line exists in Central tenant for organization-vendor:
    -"Receiving workflow" is set as "Independent order and receipt quantity"
    -Quantity = 2
    -One item has location in member1 tenant, another one - in member2 tenant
    -"Create inventory" is set as "Instance, Holdings, Item" and related Holdings record has no other reference to items or pieces
    -No related pieces were created

  3. User with "Staff" user type has assigned affiliations only in the following tenants:

  • central (Home tenant)

  • member1

  1. User has the following capability sets assigned in Central tenant:
    -data - UI-Inventory Instance - view
    -data - UI-Orders Orders - edit
    -procedural -  UI-Orders Order Unopen - execute

  2. User is logged in Central tenant

  3. User is on "Orders" pane, "Orders" toggle is selected on "Search & filter" pane, created order details pane is displayed

Steps to reproduce:

  1. Click "Actions" button on order details pane

  2. Select "Unopen" option

  3. Click "Delete Holdings" button in appeared confirmation popup → Error toast message appears, order remains in “Open” status

  4. Click on PO line record in “PO lines” accordion

Expected result: both “Receipt status” and “Payment status” have “Ongoing” values

Actual result: both “Receipt status” and “Payment status” have “Pending” values

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

3

relates to

Checklist

hide

Activity

Show:

NinaChistova last week

Tested on bugfest, works as expected

Dennis Bridges last week

Test successful in eureka-bugfest-sunflower-consortia

Mikita Siadykh last week

it should be fixed in - please try on snapshots (it was merged yesterday so probably that’s why you saw generic error)

JenkinsNotifications last week

Module mod-orders was deployed to sunflower bugfest environment with version 13.0.2.

Dennis Bridges April 8, 2025 at 7:08 PM

This test is passing in testing-snapshot as there is now a toast message that appears. However, the message needs to give the detailed response that is given in the related ticket

“Operation failed. This record has location affiliations that your user does not have. These affiliations must be removed or the operation must be performed by a user that has the same affiliations as the record.“

The toast as it is currently implemented is not useful to the user.

should we create a followup issue for this or can we still make this change? The current implementation is sufficient to prevent problems in sunflower but the message should be updated in Trillium at the latest.

Done

Details

Assignee

Reporter

Priority

Story Points

Development Team

Thunderjet

Fix versions

Release

Sunflower (R1 2025) Bug Fix

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created April 3, 2025 at 3:54 PM
Updated last week
Resolved April 8, 2025 at 8:30 AM
TestRail: Cases
TestRail: Runs