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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt (-4 / +1 lines)
Lines 53-59 Link Here
53
        </div>
53
        </div>
54
    [% END %]
54
    [% END %]
55
    [% UNLESS can_be_discharged %]
55
    [% UNLESS can_be_discharged %]
56
        <p>A discharge cannot be generated for this patron because:</p>
56
        <p>A discharge cannot be generated for this patron for following reasons:</p>
57
        <ul>
57
        <ul>
58
            [% IF discharge_problems.checkouts %]
58
            [% IF discharge_problems.checkouts %]
59
                <li>The patron has [% discharge_problems.checkouts | html %] item(s) checked out</li>
59
                <li>The patron has [% discharge_problems.checkouts | html %] item(s) checked out</li>
Lines 68-76 Link Here
68
            <p>The patron has holds. The holds will be cancelled if the discharge is generated.</p>
68
            <p>The patron has holds. The holds will be cancelled if the discharge is generated.</p>
69
        [% END %]
69
        [% END %]
70
70
71
        [% IF discharge_problems.debt %]
72
            <li>The patron has unpaid charges of [% discharge_problems.debt | $Price %]</li>
73
        [% END %]
74
        <div class="btn-toolbar">
71
        <div class="btn-toolbar">
75
            <form method="post">
72
            <form method="post">
76
                [% INCLUDE 'csrf-token.inc' %]
73
                [% INCLUDE 'csrf-token.inc' %]
(-)a/opac/opac-discharge.pl (-3 / +1 lines)
Lines 47-54 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
47
47
48
my ( $can_be_discharged, $discharge_problems ) =
48
my ( $can_be_discharged, $discharge_problems ) =
49
    Koha::Patron::Discharge::can_be_discharged( { borrowernumber => $loggedinuser } );
49
    Koha::Patron::Discharge::can_be_discharged( { borrowernumber => $loggedinuser } );
50
my $patron                = Koha::Patrons->find($loggedinuser);
50
my $patron = Koha::Patrons->find($loggedinuser);
51
my $has_pending_checkouts = $patron->checkouts->count;
52
51
53
$template->param(
52
$template->param(
54
    can_be_discharged  => $can_be_discharged,
53
    can_be_discharged  => $can_be_discharged,
55
- 

Return to bug 14250