]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt
Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
1 [% USE Asset %]
2 [% USE Koha %]
3 [% USE Branches %]
4 [% USE KohaDates %]
5 [% SET footerjs = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Print receipt for [% patron.cardnumber %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% Asset.css("css/printreceiptinvoice.css") %]
10 </head>
11
12 <body id="printinvoice" class="pat">
13
14 <div id="receipt">
15 <!-- The table with the account items -->
16 <table>
17 [% IF ( LibraryName ) %]
18   <tr>
19     <th colspan="5" class="centerednames">
20                 <h3>[% LibraryName %]</h3>
21         </th>
22   </tr>
23 [% END %]
24   <tr>
25     <th colspan="5" class="centerednames">
26                 <h2><u>INVOICE</u></h2>
27         </th>
28   </tr>
29   <tr>
30     <th colspan="5" class="centerednames">
31         <h2>[% Branches.GetName( patron.branchcode ) %]</h2>
32         </th>
33   </tr>
34   <tr>
35     <th colspan="5" >
36         Bill to: [% patron.firstname %] [% patron.surname %] <br />
37         Card number: [% patron.cardnumber %]<br />
38         </th>
39   </tr>
40   <tr>
41         <th>Date</th>
42     <th>Description of charges</th>
43     <th>Note</th>
44     <th style="text-align:right;">Amount</th>
45     <th style="text-align:right;">Amount outstanding</th>
46  </tr>
47
48   [% FOREACH account IN accounts %]
49 <tr class="highlight">
50       <td>[% account.date | $KohaDates%]</td>
51        <td>
52         [% SWITCH account.accounttype %]
53           [% CASE 'Pay' %]Payment, thanks
54           [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55           [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56           [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57           [% CASE 'N' %]New Card
58           [% CASE 'F' %]Fine
59           [% CASE 'A' %]Account management fee
60           [% CASE 'M' %]Sundry
61           [% CASE 'L' %]Lost Item
62           [% CASE 'W' %]Writeoff
63           [% CASE %][% account.accounttype %]
64         [%- END -%]
65         [%- IF account.description %], [% account.description %][% END %]
66       </td>
67       <td>[% account.note %]</td>
68       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
69       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
70     </tr>
71
72   [% END %]
73 <tfoot>
74   <tr>
75     <td colspan="4">Total outstanding dues as on date: </td>
76     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
77   </tr>
78   </tfoot>
79 </table>
80 </div>
81
82 [% MACRO jsinclude BLOCK %]
83     [% INCLUDE 'slip-print.inc' #printThenClose %]
84 [% END %]
85
86 [% INCLUDE 'intranet-bottom.inc' %]