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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt (+35 lines)
Lines 1-3 Link Here
1
[% USE KohaDates %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
3
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
3
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Lines 22-27 Link Here
22
<li>[% IF ( phone ) %][% phone %][% ELSE %](no phone number on file)[% END %]</li>
23
<li>[% IF ( phone ) %][% phone %][% ELSE %](no phone number on file)[% END %]</li>
23
<li>[% IF ( email ) %][% email %][% ELSE %](no primary email on file)[% END %]</li>
24
<li>[% IF ( email ) %][% email %][% ELSE %](no primary email on file)[% END %]</li>
24
[% IF ( emailpro ) %]<li>[% emailpro %]</li>[% END %]
25
[% IF ( emailpro ) %]<li>[% emailpro %]</li>[% END %]
26
<li>Registration date: [% dateenrolled %]</li>
27
<li>Expiration date: [% dateexpiry %]</li>
28
<li>Library: [% branchname %]</li>
29
<li>Category: [% description %]</li>
25
</ul>
30
</ul>
26
31
27
[% IF ( issueloop ) %]
32
[% IF ( issueloop ) %]
Lines 86-89 Link Here
86
</table>
91
</table>
87
[% END %]
92
[% END %]
88
93
94
[% IF ( accounts ) %]
95
<table>
96
    <caption>Account fines and payments</caption>
97
    <tr>
98
        <th>Description of charges</th>
99
        <th>Date</th>
100
        <th>Amount</th>
101
        <th>Outstanding</th>
102
    </tr>
103
    [% FOREACH account IN accounts %]
104
    <tr>
105
        <td>
106
            [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% END %]
107
            [% account.description %]&nbsp;[% IF ( account.printtitle ) %] [% account.title |html %][% END %]
108
            [% IF ( account.itemnumber ) %]</a>[% END %]
109
        </td>
110
        <td>[% account.date | $KohaDates %]</td>
111
        <td>[% account.amount %]</td>
112
        <td>[% account.amountoutstanding %]</td>
113
    </tr>
114
    [% END %]
115
    <tfoot>
116
        <tr>
117
            <td colspan="3">Total due</td>
118
            <td colspan="2">[% totaldue %]</td>
119
        </tr>
120
    </tfoot>
121
</table>
122
[% END %]
123
89
[% INCLUDE 'intranet-bottom.inc' %]
124
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/members/moremember.pl (-1 / +13 lines)
Lines 232-237 my $lib2 = &GetSortDetails( "Bsort2", $data->{'sort2'} ); Link Here
232
$template->param( lib1 => $lib1 ) if ($lib1);
232
$template->param( lib1 => $lib1 ) if ($lib1);
233
$template->param( lib2 => $lib2 ) if ($lib2);
233
$template->param( lib2 => $lib2 ) if ($lib2);
234
234
235
# If printing a page, send the account informations to the template
236
if ($print eq "page") {
237
    foreach my $accountline (@$accts) {
238
        $accountline->{amount} = sprintf '%.2f', $accountline->{amount};
239
        $accountline->{amountoutstanding} = sprintf '%.2f', $accountline->{amountoutstanding};
240
241
        if ($accountline->{accounttype} ne 'F' && $accountline->{accounttype} ne 'FU'){
242
            $accountline->{printtitle} = 1;
243
        }
244
    }
245
    $template->param( accounts => $accts );
246
}
247
235
# Show OPAC privacy preference is system preference is set
248
# Show OPAC privacy preference is system preference is set
236
if ( C4::Context->preference('OPACPrivacy') ) {
249
if ( C4::Context->preference('OPACPrivacy') ) {
237
    $template->param( OPACPrivacy => 1);
250
    $template->param( OPACPrivacy => 1);
238
- 

Return to bug 11869