2 Template for printing a list of past bills. Data specific
3 to this template includes:
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.title - Copy title
24 xact.copy_barcode - Copy barcode
25 xact.xact_finish - Billing finish date and time
26 xact.xact_start - Billing start date and time
27 xact.summary - information about the transaction
28 xact.summary.balance_owed - Balance owed
29 xact.summary.last_billing_note - Last billing note
30 xact.summary.last_billing_type - Last billing type
31 xact.summary.last_payment_note - Last payment note
32 xact.summary.last_payment_ts - Last payment date and time
33 xact.summary.last_payment_type - Last payment type
34 xact.summary.total_owed - Total billed
35 xact.summary.total_paid - Total paid
36 xact.summary.xact_type - Billing type
37 xact.call_number - Information about the copy
38 xact.call_number.label - Copy call number
39 xact.call_number.prefix - Copy call number prefix
40 xact.call_number.suffix - Copy call number suffix
41 xact.call_number.owning_lib.name - The owning library's name
42 xact.call_number.owning_lib.shortname - The owning library's shortname
45 Welcome to {{current_location.name}}!<br/>
46 You had the following bills:
49 <div ng-repeat="xact in transactions">
50 <dt><b>Bill #{{xact.id}}</b></dt>
54 <td>[% l('Billing Date:') %]</td>
55 <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
58 <td>[% l('Type') %]:</td>
59 <td>{{xact.summary.xact_type}}</td>
62 <td>[% l('Last Billing') %]:</td>
63 <td>{{xact.summary.last_billing_type}}<br/>
64 {{xact.summary.last_billing_note}}
68 <td>[% l('Total Billed') %]:</td>
69 <td>{{xact.summary.total_owed | currency}}</td>
72 <td>[% l('Last Payment') %]:</td>
73 <td>{{xact.summary.last_payment_type}}<br/>
74 {{xact.summary.last_payment_note}}<br/>
75 {{xact.summary.last_payment_ts | date:$root.egDateAndTimeFormat}}
79 <td>[% l('Total Paid') %]:</td>
80 <td>{{xact.summary.total_paid | currency}}</td>
83 <td><b>[% l('Balance') %]:</b></td>
84 <td><b>{{xact.summary.balance_owed | currency}}</b></td>
89 </div><!-- ng-repeat -->
92 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}