Go to file
Pedro Amorim 7fb699f46d 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>
(cherry picked from commit cf06f05ec0)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
2023-03-01 15:32:49 +00:00
C4 Bug 32205: Remove unnecessary syspref template params for failed OPAC auth 2023-03-01 09:48:37 +00:00
Koha Bug 22428: DBIC schema 2023-03-01 15:27:40 +00:00
acqui Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl 2023-02-01 15:18:30 +00:00
admin Bug 32460: Add missing columns to table configuration for patron categories 2023-02-24 11:15:42 +00:00
api Bug 32923: Add 'vendor' for local packages 2023-02-28 18:44:53 +00: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-31 17:15:27 +00:00
bin
…
catalogue Bug 32585: (bug 32583 follow-up) Fix some variable references 2023-03-01 09:52:50 +00:00
cataloguing Bug 32824: Fix cataloguing/value_builder/unimarc_field_100.pl 2023-03-01 09:36:31 +00:00
circ Bug 32922: Remove space in shebang 2023-02-24 07:51:37 +00:00
clubs Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
course_reserves Bug 31893: Use checkauth and do not fetch about.tt template 2023-01-31 14:09:05 +00:00
debian Bug 32994: Remove compiled files from src (2) 2023-02-24 11:34:01 +00: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-24 07:51:37 +00:00
errors
…
etc Bug 32612: (QA follow-up) Remove superfluous line 2023-02-06 15:54:19 +00:00
ill
…
installer Bug 22428: DBRev 22.12.00.006 2023-03-01 15:32:30 +00:00
koha-tmpl Bug 30869: Add the ability to delete stock rotation rotas 2023-03-01 15:32:49 +00:00
labels Bug 31633: (follow-up) Group template params 2022-10-03 14:09:59 -03:00
lib/CGI/Session/Serialize
…
members Bug 31095: Remove GetDebarments from members/memberentry.pl 2023-02-01 15:35:28 +00:00
misc Bug 32798: Update parameter passed to Koha::Biblio::Metadata->record 2023-02-24 11:14:30 +00:00
offline_circ Bug 30016: Remove GetOpenIssue subroutine 2022-08-31 08:50:37 -03:00
opac Bug 23247: Use EmbedItems in opac-MARCdetail.pl 2023-02-24 08:15:59 +00:00
patron_lists
…
patroncards
…
plugins
…
pos Bug 30619: Add email receipt to POS 2022-09-07 15:59:34 -07:00
recalls
…
reports Bug 32588: Make filters on 'items with no checkouts' report translatable 2023-01-31 18:06:13 +00:00
reserve Bug 32909: Load item type icons from the correct path 2023-02-16 09:41:30 -01:00
reviews
…
rotating_collections
…
serials Bug 29608: Made so doesn't require full permission 2022-09-07 13:49:53 -07:00
services
…
skel
…
suggestion Bug 32531: Restore behaviour of 'include archived' filter 2023-01-13 15:54:39 +00:00
svc Bug 15869: Change framework on overlay 2023-02-08 16:34:09 +00:00
t Revert "Bug 32594: (QA follow-up) Adjust tests" 2023-03-01 11:10:27 +00:00
tags Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
tmp/modified_authorities
…
tools Bug 30869: Add the ability to delete stock rotation rotas 2023-03-01 15:32:49 +00:00
virtualshelves Bug 16522: (follow-up) MARC display templates and get_marc_host fixes 2023-01-31 17:15:27 +00:00
xt Bug 32741: Regression tests 2023-02-06 15:50:58 +00:00
.editorconfig
…
.eslintrc.json
…
.gitignore Bug 32030: Add dist dir to .gitignore 2022-11-08 09:49:57 -03:00
.htaccess
…
.mailmap Bug 32582: Fix error in .mailmap 2023-01-25 14:39:04 +00:00
.perlcriticrc
…
.proverc.dist
…
.stylelintrc.json Bug 31528: (follow-up) A few additional rules 2022-10-03 08:23:15 -03:00
INSTALL
…
Koha.pm Bug 22428: DBRev 22.12.00.006 2023-03-01 15:32:30 +00:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 32806: (follow-up) Rename main.js to erm.js 2023-02-28 18:54:23 +00:00
README
…
README.md
…
README.robots
…
about.pl Bug 30808: Add support for version codenames 2022-11-25 15:20:00 -03:00
app.psgi
…
changelanguage.pl
…
cpanfile Bug 32673: Remove misc/load_testing/ scripts 2023-02-06 15:56:03 +00: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-24 11:31:03 +00:00
help.pl
…
koha_perl_deps.pl
…
kohaversion.pl
…
mainpage.pl
…
package.json Bug 32978: Replace node-sass with dart-sass 2023-02-24 11:31:03 +00:00
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 32806: Move main-erm.ts to modules/erm.ts 2023-02-28 18:54:57 +00:00
yarn.lock Bug 32978: Updated yarn.lock 2023-02-24 11:31:26 +00:00

README.md

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