Acq Unit handling in the PO when Template is used

Description

Purpose: To deal with various acquisitions unit scenarios when an order template is applied to a new PO. Since order templates are tenant-level, they can include any acquisitions units available in the template. But when a user creates a new PO, that user may be restricted from assigning particular acq units. This story accounts for acq unit handling from templates.

As a staff person
I want to be able to correct the Acquisitions unit supplied by an Order template
So that I can save the new PO

Scenarios

  1. Scenario 1

    • Given the New PO screen in the Orders app

    • When a template is used to populate the PO

    • And the user is permitted to assign all of the acquisitions units that were assigned by the template

    • And the user presses Save

    • Then allow the PO to be saved

  2. Scenario 2

    • Given the New PO screen in the Orders app

    • When a template is used to populate the PO

    • And the user is not permitted to assign one or more of the acquisitions units that were assigned by the template

    • And the user presses Save

    • Then present a dialog to the user similar to the attached Delete Not Allowed.png

      • Header: Purchase order not saved

      • Text: This purchase order cannot be saved until the acquisition unit is removed or corrected

      • Button: Close

  3. Scenario 3

    • Given the Purchase order not saved dialog

    • When the dialog is closed

    • And the user clears the acquisitions unit or changes it to one permitted for that user

    • Then allow the purchase order to be saved (assuming all other required fields are filled)

  4. Scenario 4

    • Ensure test coverage is 80%+

Environment

None

Potential Workaround

None

Attachments

5

Checklist

hide

TestRail: Results

Activity

Show:

Dennis BridgesNovember 14, 2019 at 9:13 PM

Working as described. Well done!

Aliaksei ChumakouNovember 12, 2019 at 10:48 AM

I've recorded a screencast, in addition to the screenshot above, please look

Ann-Marie BreauxNovember 12, 2019 at 1:26 AM

Hi See attached Acq units and Order templates, take 2.mp4 I'm still not getting the proper error message for scenario 2. Could you take one more look at it? Thank you!

Aliaksei ChumakouNovember 4, 2019 at 3:11 PM
Edited

Basically, what stops you from going directly to Orders list, Create Order, choosing template with Acq units not enabled for Breax user? Perm my understanding this ticket describes this particular case, when user tries to use template with Acq units he is not assigned.
I'm just worried that we have 1 day of permissions caching, so permissions issue will be fixed only tomorrow, and maybe it makes sense to handle them in a separate ticket or something. What do you think?

Ann-Marie BreauxNovember 4, 2019 at 1:48 AM

Hi I tried testing this on folio-snapshot, but could not set up a way to manually test Scenario 2. See attached video - any ideas on how to manually test this? Leaving it In review for now. Thank you!

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 21, 2019 at 7:34 PM
Updated November 29, 2019 at 9:18 PM
Resolved November 14, 2019 at 9:13 PM
TestRail: Cases
TestRail: Runs