Bug 22761: Add ability to use print version of ACCOUNT_CREDIT slip
[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
22 [% IF letter %]
23     [% letter.content | evaltt %]
24 [% ELSE %]
25 <!-- The table with the account items -->
26 <table>
27 [% IF ( LibraryName ) %]
28  <tr>
29     <th colspan=4 class="centerednames">
30                 <h3>[% LibraryName | html %]</h3>
31         </th>
32  </tr>
33 [% END %]
34  <tr>
35     <th colspan=4 class="centerednames">
36         <h2><u>Fee receipt</u></h2>
37         </th>
38  </tr>
39  <tr>
40     <th colspan=4 class="centerednames">
41         <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
42         </th>
43  </tr>
44  <tr>
45     <th colspan=4 >
46         Received with thanks from  [% patron.firstname | html %] [% patron.surname | html %] <br />
47         Card number: [% patron.cardnumber | html %]<br />
48         </th>
49  </tr>
50   <tr>
51         <th>Date</th>
52     <th>Description of charges</th>
53     <th>Note</th>
54     <th>Amount</th>
55  </tr>
56
57   [% FOREACH account IN accounts %]
58 <tr class="highlight">
59       <td>[% account.date | $KohaDates %]</td>
60       <td>
61         [% PROCESS account_type_description account=account %]
62         [%- IF account.description %], [% account.description | html %][% END %]
63       </td>
64       <td>[% account.note | html %]</td>
65       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
66     </tr>
67
68   [% END %]
69 <tfoot>
70   <tr>
71     <td colspan="3">Total outstanding dues as on date: </td>
72     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
73   </tr>
74   </tfoot>
75 </table>
76 <!-- / The table with the account items -->
77 [% END %]
78
79 </div>
80
81 [% MACRO jsinclude BLOCK %]
82     [% INCLUDE 'slip-print.inc' #printThenClose %]
83 [% END %]
84
85 [% INCLUDE 'intranet-bottom.inc' %]