]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
LP1901028 Print Template for Checkout Missing Fields
[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   checkout includes:
27
28   * checkout.title
29   * checkout.author
30   * checkout.circ.due_date
31   * checkout.circ.renewal_remaining
32   * checkout.copy.barcode
33   * checkout.copy.circ_modifier.name
34   * checkout.call_number.label
35   * checkout.call_number.owning_lib.name
36   * checkout.call_number.owning_lib.shortname
37
38 -->
39 <div>
40   <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
41   <div>[% l('You checked out the following items:') %]</div>
42   <hr/>
43   <ol>
44     <li ng-repeat="checkout in circulations">
45       <div>{{checkout.title}}</div>
46       <div>[% l('Barcode: [_1] Due: [_2]', 
47         '{{checkout.copy.barcode}}',
48         '{{checkout.circ.due_date | egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.duration}}') %]</div>
49     </li>
50   </ol>
51   <hr/>
52   <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
53   <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
54 <br/>
55