Bug 15919: Batch checkout - Display the due date
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 2 May 2016 19:19:05 +0000 (20:19 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Fri, 6 May 2016 04:08:20 +0000 (04:08 +0000)
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 <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt

index 0562df5..164e1d7 100755 (executable)
@@ -407,7 +407,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;
         }
index 5af9853..614fdbb 100644 (file)
@@ -270,6 +270,10 @@ $(document).ready(function() {
                   [% END %]
                 </p>
               [% END %]
+
+              [% IF checkout_info.issue.date_due %]
+                <li>Due on [% checkout_info.issue.date_due | $KohaDates %]</li>
+              [% END %]
             </td>
           </tr>
         [% END %]