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 * transasctions - a list of transactions, each of which contains:
21 xact.id - Bill unique id
22 xact.copy_barcode - Copy barcode
23 xact.xact_finish - Billing finish date and time
24 xact.xact_start - Billing start date and time
25 xact.summary - Information about the transaction
26 xact.summary.balance_owed - Balance owed
27 xact.summary.last_billing_note - Last billing note
28 xact.summary.last_billing_type - Last billing type
29 xact.summary.last_payment_note - Last payment note
30 xact.summary.last_payment_ts - Last payment date and time
31 xact.summary.last_payment_type - Last payment type
32 xact.summary.total_owed - Total billed
33 xact.summary.total_paid - Total paid
34 xact.summary.xact_type - Billing type
35 xact.title - Copy title
36 xact.summary - information about the transaction
37 xact.title - Copy title
38 xact.copy_barcode - Copy barcode
41 Welcome to {{current_location.name}}!<br/>
42 You had the following bills:
45 <div ng-repeat="xact in transactions">
46 <dt><b>Bill #{{xact.id}}</b></dt>
50 <td>[% l('Billing Date:') %]</td>
51 <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
54 <td>[% l('Type') %]:</td>
55 <td>{{xact.summary.xact_type}}</td>
58 <td>[% l('Last Billing') %]:</td>
59 <td>{{xact.summary.last_billing_type}}<br/>
60 {{xact.summary.last_billing_note}}
64 <td>[% l('Total Billed') %]:</td>
65 <td>{{xact.summary.total_owed | currency}}</td>
68 <td>[% l('Last Payment') %]:</td>
69 <td>{{xact.summary.last_payment_type}}<br/>
70 {{xact.summary.last_payment_note}}<br/>
71 {{xact.summary.last_payment_ts | date:$root.egDateAndTimeFormat}}
75 <td>[% l('Total Paid') %]:</td>
76 <td>{{xact.summary.total_paid | currency}}</td>
79 <td><b>[% l('Balance') %]:</b></td>
80 <td><b>{{xact.summary.balance_owed | currency}}</b></td>
85 </div><!-- ng-repeat -->
88 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}