From 4de8f9b50648eebcbd43b507425f7c3ac225042f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 May 2016 20:19:05 +0100 Subject: [PATCH] Bug 15919: Batch checkout - Display the due date MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When an item has been checked out in a batch, the due date will now be displayed in the information column. Test plan: Use the batch checkout to check some items out Confirm that the due date is displayed if the items have been checked out. Signed-off-by: Marc VĂ©ron --- circ/circulation.pl | 2 +- .../prog/en/modules/circ/circulation_batch_checkouts.tt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index c2d9399..b7b605d 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -425,7 +425,7 @@ if (@$barcodes) { } unless($confirm_required) { my $issue = AddIssue( $borrower, $barcode, $datedue, $cancelreserve, undef, undef, { onsite_checkout => $onsite_checkout, auto_renew => $session->param('auto_renew') } ); - $template->param( issue => $issue ); + $template_params->{issue} = $issue; $session->clear('auto_renew'); $inprocess = 1; } 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 5af9853..614fdbb 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 @@ -270,6 +270,10 @@ $(document).ready(function() { [% END %]

[% END %] + + [% IF checkout_info.issue.date_due %] +
  • Due on [% checkout_info.issue.date_due | $KohaDates %]
  • + [% END %] [% END %] -- 1.7.10.4