From 7fce68a1a8a23a1be3f74f14e4f10aaee1589614 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 4 Aug 2020 16:55:56 +0200 Subject: [PATCH] Bug 16748: Add the ability to define due date in batch checkout This patch allows the librarian to pick the due date when batch checkout Test plan: Batch checkout using a hard due date => Notice that the due date is taken into account Batch checkout the same barcodes with a different due date, to trigger the confirmation step => Notice that the due date is taken into account for the renewals --- .../modules/circ/circulation_batch_checkouts.tt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt index 4df661a155..a601897530 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt @@ -77,6 +77,13 @@ + [% IF Koha.Preference('SpecifyDueDate') %] +
+ Due date: + + +
+ [% END %]
@@ -274,6 +281,7 @@ +
@@ -315,7 +323,15 @@ ], "bPaginate": false })); + + $("#duedatespec").datetimepicker({ + hour: 23, + minute: 59 + }).on("change", function(e, value) { + if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} + }); }); + [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] -- 2.20.1