Bug 22553: Unchecking a subpermission does not uncheck the top level permission
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE Branches %]
5 [% USE KohaDates %]
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 </head>
16
17 <body id="printinvoice" class="pat">
18
19 <div id="receipt">
20 <!-- The table with the account items -->
21 <table>
22 [% IF ( LibraryName ) %]
23   <tr>
24     <th colspan="5" class="centerednames">
25                 <h3>[% LibraryName | html %]</h3>
26         </th>
27   </tr>
28 [% END %]
29   <tr>
30     <th colspan="5" class="centerednames">
31                 <h2><u>INVOICE</u></h2>
32         </th>
33   </tr>
34   <tr>
35     <th colspan="5" class="centerednames">
36         <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
37         </th>
38   </tr>
39   <tr>
40     <th colspan="5" >
41         Bill to: [% patron.firstname | html %] [% patron.surname | html %] <br />
42         Card number: [% patron.cardnumber | html %]<br />
43         </th>
44   </tr>
45   <tr>
46         <th>Date</th>
47     <th>Description of charges</th>
48     <th>Note</th>
49     <th style="text-align:right;">Amount</th>
50     <th style="text-align:right;">Amount outstanding</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       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding | $Price %]</td>
63     </tr>
64
65   [% END %]
66 <tfoot>
67   <tr>
68     <td colspan="4">Total outstanding dues as on date: </td>
69     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
70   </tr>
71   </tfoot>
72 </table>
73 </div>
74
75 [% MACRO jsinclude BLOCK %]
76     [% INCLUDE 'slip-print.inc' #printThenClose %]
77 [% END %]
78
79 [% INCLUDE 'intranet-bottom.inc' %]