]> git.koha-community.org Git - koha.git/commit
Bug 30403: Add syspref UpdateNotForLoanStatusOnCheckout
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Tue, 29 Mar 2022 09:51:01 +0000 (12:51 +0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Apr 2023 13:45:04 +0000 (10:45 -0300)
commitb1731a54e554fffecf20806701c2d89eb00b20d3
tree3a0c91df9a5a585dbd2a9af7ae879556edbbe003
parentc0392d881b0672c1b97e06df04f26806e48630e3
Bug 30403: Add syspref UpdateNotForLoanStatusOnCheckout

We currently have syspref UpdateNotForLoanStatusOnCheckin which updates
notforloan status when item is checked in. We should also have
same kind of syspref for check outs. This would be usefull if for
example library has item in exhibition with status
"In exhibition, available for loan". When patron check outs the
item notforloan status can be reseted back to 0, informing staff
that the item is back on circulation.

This patch adds new syspref Add syspref UpdateNotForLoanStatusOnCheckout.

To test:
1. Set items notforloan status as e.g -1.
2. Check out item for a patron.
=> Note that items status doesn't change.
3. Apply patch and update database if needed.
4. Add "-1: 0" to syspref UpdateNotForLoanStatusOnCheckout.
5. Check item in and out again for a patron.
=> Note that items status is changed as 0.

Also prove t/db_dependent/Circulation/issue.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Catrina <catrina@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Circulation.pm
installer/data/mysql/atomicupdate/bug_30403.pl [new file with mode: 0755]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
t/db_dependent/Circulation/issue.t