Modorders-1087-Delete received pieces in bulk #409
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose: Libraries that use the Receiving app for receipt of print serials may wish to delete pieces that precede a specific date. Currently, FOLIO supports the deletion of pieces, but one at a time. When a library wishes to purge receiving records for multiple years on an ongoing workflow, the ability to delete pieces in bulk will streamline this workflow.
Weeding old journal issues; receiving records no longer necessary since items have been withdrawn
User story statement(s):
As a serials librarian,
I want to delete multiple pieces at one time
so that the continuous addition of pieces does not eventually impact performance of the Receiving app.
Scenarios:
Bulk edit received/expected pieces:
Given user has received multiple piece records for a given receiving title
When expanding received/expected pieces accordion
Then user has option in action menu for Bulk edit
Select one or more pieces:
Given user clicks Bulk edit
When toggles appear in table
Then user can select one or more pieces
Edit pieces:
Given user has selected one or more pieces
When user clicks edit piece button
Then Bulk edit piece form is displayed
Delete all pieces
Given user clicks edit piece button
When Bulk edit piece form is displayed
Then "Delete all" button is active
Delete all pieces confirmation
Given user is viewing Bulk edit piece form
When user clicks "Delete all"
Then confirmation modal is shown
Message: "This will permanently remove all the pieces you have selected. Any related items with a status of "On order" will also be deleted. Would you like to proceed?
AND user can confirm or cancel
Library enhancement suggested by Lafayette College (May 2022 adopter)