Koha/serials
Alex Buckley d132c10bfc
Bug 7046: Implemented subscription renewal dropdown sub length element
To make this work I moved the _get_sub_length function from
subscription-add.pl to C4/Serials.pm so that the subscription-renew.pl
script could also call it to store the sublength for the appropriate
field of the subscriptions database table.

Test plan:
1. Create a subscription and notice that there is a dropdown box for sub
   length containing the values: issues, weeks, months
2. Renew the subscription and notice that there are 3 input text boxes:
   'number of num', 'number of weeks' and 'number of months'
3. Input a 'Number of weeks' value of 2
4. Query the subscription database table and notice that the value of 2
   has been stored in the weeklength field for the subscription record you
   just renewed
5. Apply the patch
6. Renew the subscription and notice that there is now a sublength
   dropdown box containing issues, weeks and months
7. Set the month value to 3
8. Query the database and notice that 3 was stored in the monthlength
   field for the subscription record
9. Create a new subscription and select the sub length values of issues
   and 3
10. Query the database and notice that the numberlength field for the
   subscription you just created is set to 3 showing that the sublength
   dropbox is still working for creating a new subscription

Sponsored-By: Catalyst IT
Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-08 11:48:03 +01:00
..
acqui-search-result.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
acqui-search.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
add_user_search.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
checkexpiration.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
claims.pl Bug 15774: Use Koha::Object(s) for additional fields 2019-03-07 20:37:05 +00:00
create-numberpattern.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
lateissues-export.pl Bug 18536: [QA Follow-up] Tiny regex simplification 2017-05-19 10:41:39 -04:00
reorder_members.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
routing-preview.pl Bug 14711: Change prototype for AddReserve - pass a hashref 2020-02-11 14:32:47 +00:00
routing.pl Bug 20351: Shortcut serials scripts if a blocking error appeared 2018-10-17 14:25:30 +00:00
serials-collection.pl Bug 17674: Handling of special cases 2020-03-19 09:31:02 +00:00
serials-edit.pl Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
serials-home.pl Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
serials-search.pl Bug 15774: (follow-up) fix rebase issues 2019-03-07 20:37:06 +00:00
showpredictionpattern.pl Bug 15149: Serial test prediction pattern does not consider end date 2019-02-26 13:10:34 +00:00
subscription-add.pl Bug 7046: Implemented subscription renewal dropdown sub length element 2020-04-08 11:48:03 +01:00
subscription-batchedit.pl Bug 15774: Use Koha::Object(s) for additional fields 2019-03-07 20:37:05 +00:00
subscription-bib-search.pl Bug 24735: Remove QueryParser-related code 2020-03-02 11:13:03 +00:00
subscription-detail.pl Bug 15774: Use the include file to display the subscription's additional fields 2019-03-07 20:37:06 +00:00
subscription-frequencies.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-frequency.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-history.pl Bug 18260: Koha::Biblio - Remove GetBiblio 2017-07-10 13:03:38 -03:00
subscription-numberpattern.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-numberpatterns.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-renew.pl Bug 7046: Implemented subscription renewal dropdown sub length element 2020-04-08 11:48:03 +01:00
viewalerts.pl Bug 19855: Move getalert, addalert and delalert to Koha::Subscription 2018-04-23 14:22:15 -03:00