LP#1745232 - Bill History Receipt doesn't have Finish Date
[working/Evergreen.git] / Open-ILS / src / templates / staff / share / print_templates / t_bills_historical.tt2
1 <!--
2 Template for printing a list of past bills. Data specific
3 to this template includes:
4
5 * transasctions - a list of transactions, each of which
6   contains:
7
8   current_location.name - Current location's name
9   current_location.shortname - Current location's shortname
10   today - Today's date and time
11   xact.id - Bill unique id
12   xact.copy_barcode - Copy barcode
13   xact.xact_finish - Billing finish date and time
14   xact.xact_start - Billing start date and time
15   xact.summary - Information about the transaction
16     xact.summary.balance_owed - Balance owed
17     xact.summary.last_billing_note - Last billing note
18     xact.summary.last_billing_type - Last billing type
19     xact.summary.last_payment_note - Last payment note
20     xact.summary.last_payment_ts - Last payment date and time 
21     xact.summary.last_payment_type - Last payment type
22     xact.summary.total_owed - Total billed 
23     xact.summary.total_paid - Total paid
24     xact.summary.xact_type - Billing type 
25   xact.title - Copy title
26
27 -->
28 Welcome to {{current_location.name}}!<br/>
29 You had the following bills:
30 <hr/>
31 <dl>
32   <div ng-repeat="xact in transactions">
33     <dt><b>Bill #{{xact.id}}</b></dt>
34     <dd>
35     <table> 
36       <tr valign="top">
37         <td>[% l('Billing Date:') %]</td>
38         <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
39       </tr> 
40       <tr valign="top">
41         <td>[% l('Type') %]:</td>
42         <td>{{xact.summary.xact_type}}</td>
43       </tr> 
44       <tr valign="top">
45         <td>[% l('Last Billing') %]:</td>
46         <td>{{xact.summary.last_billing_type}}<br/>
47             {{xact.summary.last_billing_note}}
48         </td>
49       </tr> 
50       <tr valign="top">
51         <td>[% l('Total Billed') %]:</td>
52         <td>{{xact.summary.total_owed | currency}}</td>
53       </tr> 
54       <tr valign="top">
55         <td>[% l('Last Payment') %]:</td>
56         <td>{{xact.summary.last_payment_type}}<br/>
57             {{xact.summary.last_payment_note}}<br/>
58             {{xact.summary.last_payment_ts | date:$root.egDateAndTimeFormat}}
59         </td>
60       </tr> 
61       <tr valign="top">
62         <td>[% l('Total Paid') %]:</td>
63         <td>{{xact.summary.total_paid | currency}}</td>
64       </tr> 
65       <tr valign="top">
66         <td><b>[% l('Balance') %]:</b></td>
67         <td><b>{{xact.summary.balance_owed | currency}}</b></td>
68       </tr> 
69     </table>
70     </dd>
71     <br/>
72   </div><!-- ng-repeat -->
73 </dl>
74 <hr/>
75 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}
76 <br/><br/>
77