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