[Koha-bugs] [Bug 30642] We should record the renewal type (Automatic/Manual)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 6 17:55:50 CET 2022


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

--- Comment #1 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 144451
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144451&action=edit
Bug 30642: Record renewal type

A requirement has been requested to record whether a renewal was done manually
or automatically. A column has been added to the checkout_renewals table in the
database to record this and a check is now in place to determine whether the
renewal was manual or automatic.

Test plan:
1) In the database shell run "show columns from checkout_renewals;" and observe
that there is currently no column for recording the type of renewal
2) Apply patch
3) In the shell run "dbic" and "perl installer/data/mysql/updatedatabase.pl" to
update the database schema with the new column.
4) Create some checkouts
5) Renew some checkouts manually and observe in the database that there is now
a column called "renewal_type" that will have recorded these as "Manual"
6) Create some checkouts that can be automatically renewed
7) Run the cron script in automatic_renewals.pl and observe that there are now
also entries with a renewal_type of "Automatic"

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


More information about the Koha-bugs mailing list