[Koha-bugs] [Bug 24101] Due date to on-site loans according to the calendar and possibility to renew on-site loans

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 30 19:38:23 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24101

--- Comment #1 from Lari Taskula <lari.taskula at hypernova.fi> ---
Created attachment 102091
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102091&action=edit
Bug 24101: Enable renewals for on-site checkouts

To test:
1. Enable system preference OnSiteCheckouts
2. Set onsite_renewalsallowed circulation rule (regardless the choice of GUI)
by
   executing the following command on your Koha instance's shell

RENEWS=0; perl -e 'use Koha::CirculationRules; '\
'Koha::CirculationRules->set_rule({ branchcode => undef, categorycode =>
undef,'\
'itemtype => undef, rule_name => "onsite_renewalsallowed", rule_value => '\
"$RENEWS"' });'

3. Perform an on-site checkout
4. Try to renew the loan
5. Observe a similar error dialog:
"Cannot renew on-site checkout:

test / ( test ) has been renewed the maximum number of times by ( admin )"

6. Execute the following shell command

RENEWS=1; perl -e 'use Koha::CirculationRules; '\
'Koha::CirculationRules->set_rule({ branchcode => undef, categorycode =>
undef,'\
'itemtype => undef, rule_name => "onsite_renewalsallowed", rule_value => '\
"$RENEWS"' });'

7. Try to renew the loan
8. Observe success
9. Try to renew the loan
10. Observe the step 5 error dialog

Run unit tests:
1. prove t/db_dependent/Circulation.t
2. prove t/db_dependent/OnSiteCheckouts.t

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list