Bug 35714: Prevent items not linked with processing with a letter code a to be printed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Jan 2024 15:47:56 +0000 (16:47 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 5 Apr 2024 09:51:11 +0000 (11:51 +0200)
commit335b5b7ad52a7f56bac617e79358d4863a0e0c99
treee17c3cafc1b850efb0fcd1a3e3b0735e3fff228d
parent805ea1a00e5e05aae71c508947976b0cfff5b81a
Bug 35714: Prevent items not linked with processing with a letter code a to be printed

Items linked with a processing which does not have a letter code are not
supposed to be printed.
Currently the code is allowing to "print slip" for items when using the
link on top of the table. It results in an error "No letter_code at
/kohadevbox/koha/preservation/print_slip.pl line 45."

Test plan:
Create a processing without a letter code
Add 2 items to the waiting list then add them to a train
Go to the "show train" view
=> notice that you cannot print slip for those items
Create another processing with a letter code
Edit one of the item and set it the new processing
=> A slip for this item can be printed
Edit the other item and the train to make them use the new processing
=> A slip for those items can be printed

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue