]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
646c383c161758b6a4b066fce2372a35667c31da
[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   * prefix
7   * first_given_name
8   * second_given_name
9   * family_name
10   * suffix
11   * pref_prefix
12   * pref_first_given_name
13   * pref_second_given_name
14   * pref_family_name
15   * pref_suffix
16   * card.barcode
17   * money_summary.balance_owed - current balance
18   * money_summary.total_paid - payments made on outstanding fines/fees
19   * money_summary.total_owed - total of outstanding fines/fees
20   * expire_date
21   * alias - aka Holds Alias
22   * has_email - boolean value to show/hide elements on the receipt
23   * has_phone - same as has_email
24
25 * circulations - list of loans made during this session. Each
26   includes:
27
28   * title
29   * author
30   * copy.barcode
31   * circ.due_date
32
33 -->
34 <div>
35   <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
36   <div>[% l('You checked out the following items:') %]</div>
37   <hr/>
38   <ol>
39     <li ng-repeat="checkout in circulations">
40       <div>{{checkout.title}}</div>
41       <div>[% l('Barcode: [_1] Due: [_2]', 
42         '{{checkout.copy.barcode}}',
43         '{{checkout.circ.due_date | egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.duration}}') %]</div>
44     </li>
45   </ol>
46   <hr/>
47   <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
48   <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
49 <br/>
50