View | Details | Raw Unified | Return to bug 17560
Collapse All | Expand All

(-)a/circ/circulation.pl (+9 lines)
Lines 398-405 if (@$barcodes) { Link Here
398
        }
398
        }
399
        unless($confirm_required) {
399
        unless($confirm_required) {
400
            my $switch_onsite_checkout = exists $messages->{ONSITE_CHECKOUT_WILL_BE_SWITCHED};
400
            my $switch_onsite_checkout = exists $messages->{ONSITE_CHECKOUT_WILL_BE_SWITCHED};
401
            my $item = Koha::Items->find({ barcode => $barcode });
402
            my $had_an_hold_placed_on_it = Koha::Holds->search({ borrowernumber => $borrower->{borrowernumber}, itemnumber => $item->itemnumber })->count;
401
            my $issue = AddIssue( $borrower, $barcode, $datedue, $cancelreserve, undef, undef, { onsite_checkout => $onsite_checkout, auto_renew => $session->param('auto_renew'), switch_onsite_checkout => $switch_onsite_checkout, } );
403
            my $issue = AddIssue( $borrower, $barcode, $datedue, $cancelreserve, undef, undef, { onsite_checkout => $onsite_checkout, auto_renew => $session->param('auto_renew'), switch_onsite_checkout => $switch_onsite_checkout, } );
402
            $template_params->{issue} = $issue;
404
            $template_params->{issue} = $issue;
405
            if ( $had_an_hold_placed_on_it and C4::Context->preference('HoldFeeMode') eq 'any_time_is_collected' ) {
406
                my $patron = Koha::Patrons->find( $borrowernumber );
407
                my $reservefee = $patron->category->reservefee;
408
                if ( $reservefee > 0){
409
                    $template->param( RESERVE_CHARGE => sprintf("%.2f",$reservefee));
410
                }
411
            }
403
            $session->clear('auto_renew');
412
            $session->clear('auto_renew');
404
            $inprocess = 1;
413
            $inprocess = 1;
405
        }
414
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +3 lines)
Lines 692-697 No patron matched <span class="ex">[% message | html %]</span> Link Here
692
[% IF ( issue ) %]
692
[% IF ( issue ) %]
693
    <div class="lastchecked">
693
    <div class="lastchecked">
694
        <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
694
        <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
695
        [% IF RESERVE_CHARGE %]
696
            <p>A hold fee of [% RESERVE_CHARGE %] has been charged for collecting this item.</p>
697
        [% END %]
695
    </div>
698
    </div>
696
[% END %]
699
[% END %]
697
</form></div>
700
</form></div>
698
- 

Return to bug 17560