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