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