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