Bug 22553: Unchecking a subpermission does not uncheck the top level permission
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printfeercpt.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE KohaDates %]
5 [% USE Branches %]
6 [% USE Price %]
7 [% SET footerjs = 1 %]
8
9 [% PROCESS 'accounts.inc' %]
10
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>Print receipt for [% patron.cardnumber | html %]</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% Asset.css("css/printreceiptinvoice.css") | $raw %]
15 [% INCLUDE 'blocking_errors.inc' %]
16 </head>
17
18 <body id="pat_printfeercpt" class="pat">
19
20 <div id="receipt">
21 <!-- The table with the account items -->
22 <table>
23 [% IF ( LibraryName ) %]
24  <tr>
25     <th colspan=4 class="centerednames">
26                 <h3>[% LibraryName | html %]</h3>
27         </th>
28  </tr>
29 [% END %]
30  <tr>
31     <th colspan=4 class="centerednames">
32         <h2><u>Fee receipt</u></h2>
33         </th>
34  </tr>
35  <tr>
36     <th colspan=4 class="centerednames">
37         <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
38         </th>
39  </tr>
40  <tr>
41     <th colspan=4 >
42         Received with thanks from  [% patron.firstname | html %] [% patron.surname | html %] <br />
43         Card number: [% patron.cardnumber | html %]<br />
44         </th>
45  </tr>
46   <tr>
47         <th>Date</th>
48     <th>Description of charges</th>
49     <th>Note</th>
50     <th>Amount</th>
51  </tr>
52
53   [% FOREACH account IN accounts %]
54 <tr class="highlight">
55       <td>[% account.date | $KohaDates %]</td>
56       <td>
57         [% PROCESS account_type_description account=account %]
58         [%- IF account.description %], [% account.description | html %][% END %]
59       </td>
60       <td>[% account.note | html %]</td>
61       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
62     </tr>
63
64   [% END %]
65 <tfoot>
66   <tr>
67     <td colspan="3">Total outstanding dues as on date: </td>
68     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
69   </tr>
70   </tfoot>
71 </table>
72 </div>
73
74 [% MACRO jsinclude BLOCK %]
75     [% INCLUDE 'slip-print.inc' #printThenClose %]
76 [% END %]
77
78 [% INCLUDE 'intranet-bottom.inc' %]