]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
LP#1726568: expose circ lib and owning lib fields to spine/pocket labels
[Evergreen.git] / Open-ILS / src / templates / staff / share / print_templates / t_bills_current.tt2
1 <!--
2 Template for printing a list of current 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
22   contains:
23     xact.summary - information about the transaction
24     xact.title - Item title
25     xact.copy_barcode - Item barcode
26 -->
27 Welcome to {{current_location.name}}!<br/>
28 You have the following bills:
29 <hr/>
30 <dl>
31   <div ng-repeat="xact in transactions">
32     <dt><b>Bill #{{xact.id}}</b></dt>
33     <dd>
34     <table> 
35       <tr valign="top">
36         <td>[% l('Date:') %]</td>
37         <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
38       </tr> 
39       <tr valign="top">
40         <td>[% l('Type') %]:</td>
41         <td>{{xact.summary.xact_type}}</td>
42       </tr> 
43       <tr valign="top">
44         <td>[% l('Last Billing') %]:</td>
45         <td>{{xact.summary.last_billing_type}}<br/>
46             {{xact.summary.last_billing_note}}
47         </td>
48       </tr> 
49       <tr valign="top">
50         <td>[% l('Total Billed') %]:</td>
51         <td>{{xact.summary.total_owed | currency}}</td>
52       </tr> 
53       <tr valign="top">
54         <td>[% l('Last Payment') %]:</td>
55         <td>{{xact.summary.last_payment_type}}<br/>
56             {{xact.summary.last_payment_note}}
57         </td>
58       </tr> 
59       <tr valign="top">
60         <td>[% l('Total Paid') %]:</td>
61         <td>{{xact.summary.total_paid | currency}}</td>
62       </tr> 
63       <tr valign="top">
64         <td><b>[% l('Balance') %]:</b></td>
65         <td><b>{{xact.summary.balance_owed | currency}}</b></td>
66       </tr> 
67     </table>
68     </dd>
69     <br/>
70   </div><!-- ng-repeat -->
71 </dl>
72 <hr/>
73 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}
74 <br/><br/>
75