2 Template for printing a list of current 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
23 xact.summary - information about the transaction
24 xact.title - Item title
25 xact.copy_barcode - Item barcode
27 Welcome to {{current_location.name}}!<br/>
28 You have the following bills:
31 <div ng-repeat="xact in transactions">
32 <dt><b>Bill #{{xact.id}}</b></dt>
36 <td>[% l('Date:') %]</td>
37 <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
40 <td>[% l('Type') %]:</td>
41 <td>{{xact.summary.xact_type}}</td>
44 <td>[% l('Last Billing') %]:</td>
45 <td>{{xact.summary.last_billing_type}}<br/>
46 {{xact.summary.last_billing_note}}
50 <td>[% l('Total Billed') %]:</td>
51 <td>{{xact.summary.total_owed | currency}}</td>
54 <td>[% l('Last Payment') %]:</td>
55 <td>{{xact.summary.last_payment_type}}<br/>
56 {{xact.summary.last_payment_note}}
60 <td>[% l('Total Paid') %]:</td>
61 <td>{{xact.summary.total_paid | currency}}</td>
64 <td><b>[% l('Balance') %]:</b></td>
65 <td><b>{{xact.summary.balance_owed | currency}}</b></td>
70 </div><!-- ng-repeat -->
73 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}