]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2
d1caaf23aefece506cf7e7306a5588f0ceb9be45
[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 * 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     pref_ versions of all name fields (e.g. pref_family_name);
21 * transasctions - a list of transactions, each of which contains:
22   xact.id - Bill unique id
23   xact.copy_barcode - Copy barcode
24   xact.xact_finish - Billing finish date and time
25   xact.xact_start - Billing start date and time
26   xact.summary - Information about the transaction
27     xact.summary.balance_owed - Balance owed
28     xact.summary.last_billing_note - Last billing note
29     xact.summary.last_billing_type - Last billing type
30     xact.summary.last_payment_note - Last payment note
31     xact.summary.last_payment_ts - Last payment date and time 
32     xact.summary.last_payment_type - Last payment type
33     xact.summary.total_owed - Total billed 
34     xact.summary.total_paid - Total paid
35     xact.summary.xact_type - Billing type 
36   xact.title - Copy title
37     xact.summary - information about the transaction
38     xact.title - Copy title
39     xact.copy_barcode - Copy barcode
40
41 -->
42 Welcome to {{current_location.name}}!<br/>
43 You had the following bills:
44 <hr/>
45 <dl>
46   <div ng-repeat="xact in transactions">
47     <dt><b>Bill #{{xact.id}}</b></dt>
48     <dd>
49     <table> 
50       <tr valign="top">
51         <td>[% l('Billing Date:') %]</td>
52         <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
53       </tr> 
54       <tr valign="top">
55         <td>[% l('Type') %]:</td>
56         <td>{{xact.summary.xact_type}}</td>
57       </tr> 
58       <tr valign="top">
59         <td>[% l('Last Billing') %]:</td>
60         <td>{{xact.summary.last_billing_type}}<br/>
61             {{xact.summary.last_billing_note}}
62         </td>
63       </tr> 
64       <tr valign="top">
65         <td>[% l('Total Billed') %]:</td>
66         <td>{{xact.summary.total_owed | currency}}</td>
67       </tr> 
68       <tr valign="top">
69         <td>[% l('Last Payment') %]:</td>
70         <td>{{xact.summary.last_payment_type}}<br/>
71             {{xact.summary.last_payment_note}}<br/>
72             {{xact.summary.last_payment_ts | date:$root.egDateAndTimeFormat}}
73         </td>
74       </tr> 
75       <tr valign="top">
76         <td>[% l('Total Paid') %]:</td>
77         <td>{{xact.summary.total_paid | currency}}</td>
78       </tr> 
79       <tr valign="top">
80         <td><b>[% l('Balance') %]:</b></td>
81         <td><b>{{xact.summary.balance_owed | currency}}</b></td>
82       </tr> 
83     </table>
84     </dd>
85     <br/>
86   </div><!-- ng-repeat -->
87 </dl>
88 <hr/>
89 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}
90 <br/><br/>
91