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