Can't reopen an order after changing the expense class

Description

Overview:
Order fails to reopen after being opened/closed and the expense class was changed.

Steps to Reproduce:

  1. Create an order and an order line with an expense class

  2. Open the order

  3. Unopen the order

  4. Change the expense class

  5. Open the order

Expected Results:
Order is opened.

Actual Results:
500 - "Error retrieving the transactions"

Additional Information:
Removing the fund distribution and saving also generates the same error.

The issue comes from the pending to pending encumbrance strategy removing the old encumbrance without updating the fund distribution link to it.

The same issue does not happen when the expense class is changed in an opened order: in this case, the encumbrance link is updated. The reason for the difference is that the fund distribution's encumbrance link is only updated when a new encumbrance is created, and new encumbrances are not created for pending orders.
Interested parties:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

Edit expense class or Fund ID while orders is in the Open workflow state.

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Dennis BridgesDecember 8, 2021 at 7:31 PM

test successful at bugfest-kiwi

Oleksii PetrenkoDecember 8, 2021 at 7:23 PM

Deployed to Kiwi BF. Please proceed with verification

Dennis BridgesDecember 8, 2021 at 4:56 PM

test successful in snapshot load

 

Siarhei HrabkoDecember 8, 2021 at 12:09 PM

Verified against folio-snapshot-load.dev.folio.org

Dennis BridgesDecember 7, 2021 at 10:33 PM
Edited

Unable to verify this in testing or snapshot because of deployment issues. I can try again first thing tomorrow

Basically not able to create an order because of issue with acquisitions method in testing. And snapshot is unresponsive, it will not load order line data.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

R3 2021 Bug Fix

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 1, 2021 at 4:44 PM
Updated March 9, 2022 at 10:15 PM
Resolved December 8, 2021 at 4:56 PM
TestRail: Cases
TestRail: Runs