]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_bill_history_xacts.tt2
70f48b6ca0526be8bbdc32e8100b1d13a6f33eb9
[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
9     <eg-grid-action 
10       label="[% l('Add Billing') %]" handler="addBilling"></eg-grid-action>
11     <eg-grid-action 
12       label="[% l('Full Details') %]" handler="showFullDetails"></eg-grid-action>
13
14     <eg-grid-field path="summary.balance_owed"></eg-grid-field>
15     <eg-grid-field path="id" label="[% l('Bill #') %]"></eg-grid-field>
16     <eg-grid-field path="xact_finish" label="[% l('Finish') %]"></eg-grid-field>
17     <eg-grid-field path="xact_start" label="[% l('Start') %]"></eg-grid-field>
18     <eg-grid-field path="summary.total_owed" label="[% l('Total Billed') %]"></eg-grid-field>
19     <eg-grid-field path="summary.total_paid" label="[% l('Total Paid') %]"></eg-grid-field>
20     <eg-grid-field path="summary.xact_type" label="[% l('Type') %]"></eg-grid-field>
21
22     <eg-grid-field label="[% l('Title') %]" name="title" 
23       path="circulation.target_copy.call_number.record.simple_record.title">
24       <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.record_id}}">{{item.title}}</a>
25     </eg-grid-field>
26
27     <!-- needed for bib link -->
28     <eg-grid-field name="record_id" 
29       path="circulation.target_copy.call_number.record.id" 
30       required hidden></eg-grid-field>
31
32     <eg-grid-field label="[% l('Barcode') %]" name="copy_barcode" 
33       path="circulation.target_copy.barcode">
34       <a target="_self" href="./cat/item/{{item.copy_id}}">{{item.copy_barcode}}</a>
35     </eg-grid-field>
36
37     <!-- needed for item link -->
38     <eg-grid-field name="copy_id" 
39       path="circulation.target_copy.id" required hidden></eg-grid-field>
40
41     <!-- needed for grid query -->
42     <eg-grid-field path="summary.last_payment_ts" required hidden></eg-grid-field>
43
44     <eg-grid-field path="summary.*" hidden></eg-grid-field>
45     <eg-grid-field path="circulation.target_copy.*" hidden></eg-grid-field>
46     <eg-grid-field path="circulation.target_copy.call_number.*" hidden></eg-grid-field>
47   </eg-grid>
48 </div>
49