Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Pedro Amorim cf06f05ec0
Bug 30869: Add the ability to delete stock rotation rotas
'At the moment, it isn't possible to delete any rotas that have 0 items linked to it. The only way to do it is in MySQL - it would be good if this was possible from the staff client.'
This patch implements this, and also implements the possibility of deleting a rota with items linked to it, providing a warning that the item(s) currently in rotation will remain at its/their current stage library.

Test plan:
1) Enable StockRotation system preference
2) Cataloging > Stock rotation > New rota
3) Enter Name, save
4) Verify 'Delete' button shows on the right
5) Click 'Delete' -> Confirm 'Yes'
6) Repeat steps 1-3 and click 'Manage'->'Stages'
7) Add a new stage, enter Library and Duration, click 'Save'
8) Return to rotas, click 'Manage'->'Items'
9) Add item, enter barcode, click 'Save' (optional: add more than 1 item)
10) Optional: Click 'Move to next stage' and verify that item is now in different branch
11) Click 'return to rotas' and press 'Delete'
12) Verify the warning now shows, because items are attached, with the attached items count
13) Click 'Delete' -> Deletion is successful
14) If you did step 10, verify the item is still in the branch that it was at the time the rota was deleted

Sponsored-by: PTFS-Europe

Signed-off-by: David Nind <david@davidnind.com>

JD Amended patch:
* Fix QA failures
   FAIL   forbidden patterns
                forbidden pattern: tab char (line 150)
                forbidden pattern: tab char (line 151)
* Adjust commit message to describe what the patch does
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-24 17:52:23 -03:00
..
access_files.tt Bug 32254: Add 'page-section' to various tools pages 2022-11-22 16:33:08 -03:00
additional-contents.tt Bug 32027: Fix 'librarian interface' to use 'staff interface' in Pages/HTML customizations/News 2023-02-07 10:31:29 -03:00
automatic_item_modification_by_age.tt Bug 32632: Add 'page-section' to some tools pages 2023-01-17 09:24:13 +00:00
batch_delete_records.tt Bug 32237: Fix using a list as base for batch record deletion 2022-11-22 16:26:41 -03:00
batch_extend_due_dates.tt Bug 32632: Add 'page-section' to some tools pages 2023-01-17 09:24:13 +00:00
batch_record_modification.tt Bug 32255: Resolve "Cannot use file upload in batch record modification" 2022-12-27 10:49:58 -03:00
batchMod-del.tt Bug 32046: (follow-up) Accommodate the inclusion of item information 2022-11-23 09:34:04 -03:00
batchMod-edit.tt Bug 32019: (follow-up) Fix terminology and styling 2023-02-20 09:54:20 -03:00
batchMod.tt Bug 32236: Fix alignment of checkbox "Use default values" for item batch modification 2022-12-01 09:34:03 -03:00
cleanborrowers.tt
csv-profiles.tt
export.tt
holidays.tt
import_borrowers.tt Bug 32605: (follow-up) Additional fixes 2023-02-15 09:22:05 -03:00
inventory.tt Bug 32095: Remove bullets from inventory tool status 2022-12-27 10:51:18 -03:00
letter.tt Bug 32912: Use template wrapper for notices tabs 2023-02-24 16:45:30 -03:00
manage-marc-import.tt Bug 15869: (QA follow-up) Add some padding around the pulldowns 2023-02-07 10:32:23 -03:00
marc_modification_templates.tt
modborrowers.tt Bug 32257: Fix capitalization - Patron Attribute 2022-12-12 08:58:33 -03:00
overduerules.tt
page.tt
picture-upload.tt Bug 32254: Add 'page-section' to various tools pages 2022-11-22 16:33:08 -03:00
preview_letter.tt
problem-reports.tt
quotes-upload.tt
quotes.tt Bug 32632: Add 'page-section' to some tools pages 2023-01-17 09:24:13 +00:00
scheduler.tt
showdiffmarc.tt Bug 33016: Change breadcrumbs and page title on MARC diff view to cataloging 2023-02-24 16:44:58 -03:00
stage-marc-import.tt Bug 31891: (bug 27421 follow-up) Remove one additional click 2022-11-22 09:19:59 -03:00
stockrotation.tt Bug 30869: Add the ability to delete stock rotation rotas 2023-02-24 17:52:23 -03:00
tools-home.tt
upload-images.tt Bug 32738: Correct upload local cover image title tag 2023-01-31 09:37:19 -03:00
upload.tt Bug 30993: (QA follow-up) Add missing filter 2023-02-15 09:27:50 -03:00
viewlog.tt Bug 32475: Replace "System prefs" with "System preferences" on log viewer tool 2022-12-23 14:02:00 -03:00