From 217713ff78d62da1cc63c7261a362815a8778a40 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 14 Feb 2022 15:38:25 +0100 Subject: [PATCH] Bug 30095: Add "warn when late" to subscriptions batch mod tool This patch depends on bug 29996 Test plan: 1. On the Serials module main page, do a search that return at least 2 subscriptions 2. Check at least 2 boxes in the first column of the table, then click on "Edit selected serials" above the table 3. Verify that the table above the form display correct data for the "Warn when late" column 4. Submit the form without changing anything. Verify that the setting "warn when late" was not changed for selected subscriptions 5. Repeat steps 1 and 2. Set "Warn when late" to "No" and submit the form. Verify that the setting "warn when late" was changed to "No" for all selected subscriptions 6. Repeat steps 1 and 2. Set "Warn when late" to "Yes" and submit the form. Verify that the setting "warn when late" was changed to "Yes" for all selected subscriptions --- .../en/modules/serials/subscription-batchedit.tt | 16 ++++++++++++++++ serials/subscription-batchedit.pl | 1 + 2 files changed, 17 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt index 360b18e41d..2bc0256ed0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt @@ -49,6 +49,7 @@ Nonpublic notes Call number Create item when receiving + Warn when late Expiration date @@ -71,6 +72,13 @@ No [% END %] + + [% IF subscription.warn_when_late %] + Yes + [% ELSE %] + No + [% END %] + [% subscription.enddate | $KohaDates %] [% END %] @@ -140,6 +148,14 @@ +
  • + + +
  • diff --git a/serials/subscription-batchedit.pl b/serials/subscription-batchedit.pl index 556f81e8b3..7ab8d3906b 100755 --- a/serials/subscription-batchedit.pl +++ b/serials/subscription-batchedit.pl @@ -59,6 +59,7 @@ if ($batchedit) { notes => scalar $cgi->param('notes'), internalnotes => scalar $cgi->param('internalnotes'), serialsadditems => scalar $cgi->param('serialsadditems'), + warn_when_late => scalar $cgi->param('warn_when_late'), enddate => dt_from_string(scalar $cgi->param('enddate')), ); -- 2.30.2