Unrelease encumbrances when order is reopen

CSP Request Details

None

CSP Rejection Details

None

CSP Approved

Description

Overview:
Unreleased all encumbrances when order is reopen for transition from Closed to Open

Scenario:
Given user has permission to reopen order
When Order transitions to open
Then encumbrance logic is run to make sure Funds have enough money in them to make necessary encumbrance
AND ONLY For encumbrances released by Close order action the status is set back to "Unreleased" - see note below for suggested approach

NOTE: We should be able to check the transaction for an invoice line IDs. If one or more invoice lines has "Release encumbrance" = true then DO NOT "Unrelease" the encumbrance when order is reopened.

Example
Given user closed an order with initial encumbrance of $100, expended amount $85, amount $15 and a status of released
When user transitions order from closed to Open
Then system checks Funds for $15 amount and encumbrance now shows initial encumbrance of $100, expended amount $85, amount $15 and status of unreleased

Example update: because of MODFISTO-233, unreleasing the expended encumbrance will not work at this point, so this story's scope is reduced to orders without any expended amount. See MODFISTO-240 for a resolution.

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Andrei Makaranka May 24, 2021 at 1:48 PM

Damien May 24, 2021 at 1:21 PM

Damien May 14, 2021 at 6:13 PM

I am confused about something in the example: wouldn't unreleasing expended encumbrance go against MODFISTO-233 ?
Implementation for MODFISTO-233 is simply failing when amountExpended is different from 0...

Dennis Bridges January 13, 2021 at 7:16 PM

I've updated description here to include "AND ONLY For encumbrances released by Close order action the status is set back to "Unreleased"". I think this would be a more reliable approach then using the POL status because there are too many possibilities. Obviously the system will need a way to determine whether an encumbrance was closed when order was closed vs any other way.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created January 12, 2021 at 3:07 PM
Updated March 4, 2024 at 3:10 PM
Resolved May 24, 2021 at 1:48 PM
TestRail: Cases
TestRail: Runs