]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_bill_history_xacts.tt2
LP1739607: Add missing columns to patron record
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_bill_history_xacts.tt2
1
2 <div ng-if="bill_tab == 'transactions'" ng-controller="BillXactHistoryCtrl">
3
4   <eg-grid
5     idl-class="mbt"
6     id-field="id"
7     grid-controls="gridControls"
8     persist-key="circ.patron.billhistory_xacts"
9     dateformat="{{$root.egDateAndTimeFormat}}">
10
11     <eg-grid-action 
12       label="[% l('Add Billing') %]" handler="addBilling"></eg-grid-action>
13     <eg-grid-action 
14       label="[% l('Full Details') %]" handler="showFullDetails"></eg-grid-action>
15     <eg-grid-action
16       label="[% l('Print Bills') %]" handler="printBills"></eg-grid-action>
17
18     <eg-grid-field path="summary.balance_owed"></eg-grid-field>
19     <eg-grid-field path="id" label="[% l('Bill #') %]"></eg-grid-field>
20     <eg-grid-field path="xact_finish" label="[% l('Finish') %]" datatype="timestamp"></eg-grid-field>
21     <eg-grid-field path="xact_start" label="[% l('Start') %]" datatype="timestamp"></eg-grid-field>
22     <eg-grid-field path="summary.total_owed" label="[% l('Total Billed') %]"></eg-grid-field>
23     <eg-grid-field path="summary.total_paid" label="[% l('Total Paid') %]"></eg-grid-field>
24     <eg-grid-field path="summary.xact_type" label="[% l('Type') %]"></eg-grid-field>
25
26     <eg-grid-field label="[% l('Title') %]" name="title" 
27       path="circulation.target_copy.call_number.record.simple_record.title">
28       <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.record_id}}">{{item.title}}</a>
29     </eg-grid-field>
30
31     <!-- needed for bib link -->
32     <eg-grid-field name="record_id" 
33       path="circulation.target_copy.call_number.record.id" 
34       required hidden></eg-grid-field>
35
36     <eg-grid-field label="[% l('Barcode') %]" name="copy_barcode" 
37       path="circulation.target_copy.barcode">
38       <a target="_self" href="./cat/item/{{item.copy_id}}">{{item.copy_barcode}}</a>
39     </eg-grid-field>
40
41     <!-- needed for item link -->
42     <eg-grid-field name="copy_id" 
43       path="circulation.target_copy.id" required hidden></eg-grid-field>
44
45     <!-- needed for grid query -->
46     <eg-grid-field path="summary.last_payment_ts" datatype="timestamp" required hidden></eg-grid-field>
47
48     <eg-grid-field path="summary.*" hidden></eg-grid-field>
49     <eg-grid-field path="circulation.target_copy.*" hidden></eg-grid-field>
50     <eg-grid-field path="circulation.target_copy.circ_lib.shortname" label="[% l('Item Owning Library') %]"></eg-grid-field>
51     <eg-grid-field path="circulation.circ_lib.shortname" label="[% l('Checkout or Renewal Library') %]" hidden></eg-grid-field>
52     <eg-grid-field path="circulation.due_date" label="[% l('Due Date') %]" datefilter="egDueDate" hidden></eg-grid-field>
53     <eg-grid-field path="circulation.stop_fines" label="[% l('Fine Stop Reason') %]" hidden></eg-grid-field>
54     <eg-grid-field path="circulation.target_copy.call_number.*" hidden></eg-grid-field>
55     <eg-grid-field path="circulation.target_copy.call_number.prefix.label" label="[% l('CN Prefix') %]" hidden></eg-grid-field>
56     <eg-grid-field path="circulation.target_copy.call_number.suffix.label" label="[% l('CN Suffix') %]" hidden></eg-grid-field>
57   </eg-grid>
58 </div>
59