Main Koha release repository https://koha-community.org
Find a file
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
acqui Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl 2023-01-31 11:02:21 -03:00
admin Bug 32460: Add missing columns to table configuration for patron categories 2023-02-21 10:24:03 -03:00
api Bug 30642: Make renewal_type an enum in spec and add test 2023-02-10 11:08:00 -03:00
authorities Bug 30250: Use ApplyFrameworkDefaults when importing a record 2022-11-09 14:03:22 -03:00
basket Bug 16522: (follow-up) MARC display templates and get_marc_host fixes 2023-01-30 12:10:11 -03:00
bin
C4 Bug 32805: Update location when recording a localuse in statistics table 2023-02-24 17:02:19 -03:00
catalogue Bug 20256: Use new methods 2023-02-02 11:59:26 -03:00
cataloguing Bug 32829: Fix cataloguing/value_builder/unimarc_field_115b.pl 2023-02-24 17:01:25 -03:00
circ Bug 32922: Remove space in shebang 2023-02-20 09:44:06 -03:00
clubs
course_reserves Bug 20256: Use new methods 2023-02-02 11:59:26 -03:00
debian Bug 32992: Move background_jobs_worker to misc/workers 2023-02-24 17:52:19 -03:00
docs 22.11.00: Update history.txt 2022-11-25 15:20:02 -03:00
erm Bug 32922: Remove space in shebang 2023-02-20 09:44:06 -03:00
errors
etc Bug 32992: Move background_jobs_worker to misc/workers 2023-02-24 17:52:19 -03:00
ill
installer Bug 22428: DBRev 22.12.00.006 2023-02-24 17:52:22 -03:00
Koha Bug 22428: DBIC schema 2023-02-24 17:52:22 -03:00
koha-tmpl Bug 30869: Add the ability to delete stock rotation rotas 2023-02-24 17:52:23 -03:00
labels
lib/CGI/Session/Serialize
members Bug 31095: Remove GetDebarments from members/memberentry.pl 2023-01-31 10:19:36 -03:00
misc Bug 32594: Add a dedicated Elasticsearch biblio indexing background queue 2023-02-24 17:52:20 -03:00
offline_circ
opac Bug 31051: Show patron savings on the OPAC 2023-02-22 10:03:33 -03:00
patron_lists
patroncards
plugins
pos
recalls
reports Bug 32588: Make filters on 'items with no checkouts' report translatable 2023-01-31 10:59:33 -03:00
reserve Bug 32909: Load item type icons from the correct path 2023-02-15 09:21:20 -03:00
reviews
rotating_collections
serials
services
skel
suggestion Bug 32531: Restore behaviour of 'include archived' filter 2023-01-05 09:22:58 -03:00
svc Bug 15869: Change framework on overlay 2023-02-07 10:32:22 -03:00
t Bug 32805: Add tests 2023-02-24 17:02:19 -03:00
tags
tmp/modified_authorities
tools Bug 30869: Add the ability to delete stock rotation rotas 2023-02-24 17:52:23 -03:00
virtualshelves Bug 16522: (follow-up) MARC display templates and get_marc_host fixes 2023-01-30 12:10:11 -03:00
xt Bug 32741: Regression tests 2023-02-02 11:59:26 -03:00
.editorconfig
.eslintrc.json
.gitignore Bug 32609: Add compiled css files to gitignore 2023-02-10 11:07:52 -03:00
.htaccess
.mailmap Bug 32582: Fix error in .mailmap 2023-01-17 09:27:15 +00:00
.perlcriticrc
.proverc.dist
.stylelintrc.json
about.pl Bug 30808: Add support for version codenames 2022-11-25 15:20:00 -03:00
app.psgi
build-resources.PL Bug 32609: Use the current yarn.lock to generate node_modules 2023-02-10 11:07:57 -03:00
changelanguage.pl
cpanfile Bug 32673: Remove misc/load_testing/ scripts 2023-02-03 10:30:07 -03:00
cypress.json Bug 32030: Move cypress to t/ 2022-11-08 09:44:51 -03:00
fix-perl-path.PL
gulpfile.js Bug 32978: Replace node-sass with dart-sass 2023-02-22 10:03:39 -03:00
help.pl
INSTALL
Koha.pm Bug 22428: DBRev 22.12.00.006 2023-02-24 17:52:22 -03:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL Bug 32994: Remove breaking css/maps/*.map files from Makefile.PL 2023-02-22 10:03:31 -03:00
MANIFEST.SKIP
package.json Bug 32978: Replace node-sass with dart-sass 2023-02-22 10:03:39 -03:00
README
README.md
README.robots
rewrite-config.PL
tsconfig.json Bug 32030: Move cypress to t - fix build_js/watch_js 2022-11-08 09:44:52 -03:00
webpack.config.js Bug 32030: Move cypress to t/ 2022-11-08 09:44:51 -03:00
yarn.lock Bug 32978: Updated yarn.lock 2023-02-22 10:03:40 -03:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo