]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2
LP1772444: Updating list of variables in bill template descriptions
[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 * today - Today's date and time
6 * current_location - the current library
7     current_location.name - Current location's name
8     current_location.shortname - Current location's shortname
9 * patron - the patron who was billed, which contains:
10     patron.prefix - Prefix of the patron
11     patron.first_given_name - First given name of the patron
12     patron.second_given_name - Second given name of the patron
13     patron.family_name - Family name of the patron            
14     patron.suffix - Suffix of the patron
15     patron.card - The patron's barcode number
16     patron.expire_date - The patron's expiration date
17     patron.alias - The patron's alias
18     patron.has_email - Whether or not the patron has an email address
19     patron.has_phone - Whether or not the patron has a phone number
20 * transasctions - a list of transactions, each of which contains:
21   xact.id - Bill unique id
22   xact.copy_barcode - Copy barcode
23   xact.xact_finish - Billing finish date and time
24   xact.xact_start - Billing start date and time
25   xact.summary - Information about the transaction
26     xact.summary.balance_owed - Balance owed
27     xact.summary.last_billing_note - Last billing note
28     xact.summary.last_billing_type - Last billing type
29     xact.summary.last_payment_note - Last payment note
30     xact.summary.last_payment_ts - Last payment date and time 
31     xact.summary.last_payment_type - Last payment type
32     xact.summary.total_owed - Total billed 
33     xact.summary.total_paid - Total paid
34     xact.summary.xact_type - Billing type 
35   xact.title - Copy title
36     xact.summary - information about the transaction
37     xact.title - Copy title
38     xact.copy_barcode - Copy barcode
39
40 -->
41 Welcome to {{current_location.name}}!<br/>
42 You had the following bills:
43 <hr/>
44 <dl>
45   <div ng-repeat="xact in transactions">
46     <dt><b>Bill #{{xact.id}}</b></dt>
47     <dd>
48     <table> 
49       <tr valign="top">
50         <td>[% l('Billing Date:') %]</td>
51         <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
52       </tr> 
53       <tr valign="top">
54         <td>[% l('Type') %]:</td>
55         <td>{{xact.summary.xact_type}}</td>
56       </tr> 
57       <tr valign="top">
58         <td>[% l('Last Billing') %]:</td>
59         <td>{{xact.summary.last_billing_type}}<br/>
60             {{xact.summary.last_billing_note}}
61         </td>
62       </tr> 
63       <tr valign="top">
64         <td>[% l('Total Billed') %]:</td>
65         <td>{{xact.summary.total_owed | currency}}</td>
66       </tr> 
67       <tr valign="top">
68         <td>[% l('Last Payment') %]:</td>
69         <td>{{xact.summary.last_payment_type}}<br/>
70             {{xact.summary.last_payment_note}}<br/>
71             {{xact.summary.last_payment_ts | date:$root.egDateAndTimeFormat}}
72         </td>
73       </tr> 
74       <tr valign="top">
75         <td>[% l('Total Paid') %]:</td>
76         <td>{{xact.summary.total_paid | currency}}</td>
77       </tr> 
78       <tr valign="top">
79         <td><b>[% l('Balance') %]:</b></td>
80         <td><b>{{xact.summary.balance_owed | currency}}</b></td>
81       </tr> 
82     </table>
83     </dd>
84     <br/>
85   </div><!-- ng-repeat -->
86 </dl>
87 <hr/>
88 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}
89 <br/><br/>
90