Uploaded image for project: 'ui-users'
  1. ui-users
  2. UIU-1838

Override when item with requests is checked out

    XMLWordPrintable

Details

    • Prokopovych

    Description

      Purpose: Give a staff user with sufficient permissions the ability to override a failed check out when the item has been requested, and prevent staff users with insufficient permissions from doing so.

      1. Scenario
        • Given:
          • an item with an open request for user A,
          • a check out session for another user B, who may or may not have an open request on the item
          • a staff user C, with only Check out: All permissions
        • When staff user C scans the item to check out to user B
        • Then show the following modal:
          • Title: Item not checked out
          • Body: <title of item> (<material type of item>) (Barcode: <item barcode>) cannot be checked out to user <user B> because it has been requested by another patron
          • Controls: Override, Close (primary styling)
      2. Scenario
        • Given the modal from scenario 1
        • When the staff user clicks close
        • Then close modal and do not check out the item to user B
      3. Scenario
        • Given the modal from scenario 1
        • When the staff user clicks override
        • Then open override modal:
          • title: Override open request
          • Body:
            • <title of item> (<material type of item>) (Barcode: <item barcode>) will be checked out.
            • Comment text entry field (required)
          • Controls: Cancel, Save & close
      4. Scenario
        • Given the modal from scenario 3
        • When the staff user clicks Save & close
        • Then check out the item to user B
      5. Scenario
        • Given the modal from scenario 3
        • When the staff user clicks Cancel
        • Then close the modal and do not check out the item to user B
      6. Scenario
        • Given:
          • an item with an open request for user A,
          • a check out session for another user B, who may or may not have an open request on the item
          • a staff user C, with Check out: Check out circulating items permissions (but not Check out: All permissions)
        • When staff user C scans the item to check out to user B
        • Then show the following modal:
          • Title: Item not checked out
          • Body: <title of item> (<material type of item>) (Barcode: <item barcode>) cannot be checked out to user <user B> because it has been requested by another patron
          • Controls: Close (primary styling)
      7. Scenario
        • Given a request for user A with the status Open - Awaiting pickup, Open - Awaiting delivery, or Open - In transit
        • When the item in the request is checked out to user B
        • Then change the status of the request to Open - Not yet filled

      Override open request modal:


      Bug report from Sept. 2019

      Steps:
      Go to an item in inventory and add a request for the item.
      Copy the item's barcode.
      Go to Check out.
      Select a different user and try to check out the same item to the new user.

      Expected behavior:
      Normally, there is a warning that the item should not be checked out because there is a request for it. We expect that this can be overridden, because the checkout might be of high priority.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                ecboettcher Emma Boettcher
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases