]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
LP1737540: Add Patron Information to Receipts
[Evergreen.git] / Open-ILS / src / templates / staff / share / print_templates / t_checkout.tt2
1 <!--
2 Template for printing checkout receipts; fields available include:
3
4 * patron - has several fields from the patron object, including a financial summary
5
6   * first_given_name
7   * second_given_name
8   * family_name
9   * suffix
10   * card.barcode
11   * money_summary.balance_owed - current balance
12   * money_summary.total_paid - payments made on outstanding fines/fees
13   * money_summary.total_owed - total of outstanding fines/fees
14   * expire_date
15   * alias - aka Holds Alias
16   * has_email - boolean value to show/hide elements on the receipt
17   * has_phone - same as has_email
18
19 * circulations - list of loans made during this session. Each
20   includes:
21
22   * title
23   * author
24   * copy.barcode
25   * circ.due_date
26
27 -->
28 <div>
29   <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
30   <div>[% l('You checked out the following items:') %]</div>
31   <hr/>
32   <ol>
33     <li ng-repeat="checkout in circulations">
34       <div>{{checkout.title}}</div>
35       <div>[% l('Barcode: [_1] Due: [_2]', 
36         '{{checkout.copy.barcode}}',
37         '{{checkout.circ.due_date | egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.duration}}') %]</div>
38     </li>
39   </ol>
40   <hr/>
41   <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
42   <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
43 <br/>
44