]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2
cde7cbfe99db7a1ee20045f4ef7cb808ae4dbf0f
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_bills_list.tt2
1
2 <eg-grid
3   idl-class="mbt"
4   query="gridQuery"
5   sort="gridSort"
6   grid-controls="gridControls"
7   revision="gridRevision"
8   persist-key="circ.patron.bills">
9
10   <eg-grid-menu-item label="[% l('Bill Patron') %]" 
11     handler="showBillDialog"></eg-grid-menu-item>
12
13   <eg-grid-menu-item label="[% l('History') %]" 
14     handler="showHistory"></eg-grid-menu-item>
15
16   <eg-grid-menu-item label="[% l('Check All Refunds') %]" 
17     handler="selectRefunds"></eg-grid-menu-item>
18
19   <eg-grid-action label="[% l('Print Bills') %]" 
20     handler="printBills"></eg-grid-action>
21
22   <!--
23   need to decide if these are necessary here w/ inline links
24   to record and copy details (though they could be hidden).
25   it's misleading to allow the user to select multiple bills
26   but only open the link to one
27
28   <eg-grid-action label="[% l('Show in Catalog') %]" 
29     handler=""></eg-grid-action>
30
31   <eg-grid-action label="[% l('Show Item Details') %]" 
32     handler=""></eg-grid-action>
33   -->
34
35   <eg-grid-action label="[% l('Void All Billings') %]" 
36     handler="voidAllBillings"></eg-grid-action>
37
38   <eg-grid-action label="[% l('Adjust to Zero') %]" 
39     handler="adjustToZero"></eg-grid-action>
40
41   <eg-grid-action label="[% l('Refund') %]" 
42     handler="refundXact"></eg-grid-action>
43
44   <eg-grid-action label="[% l('Add Billing') %]" 
45     handler="addBilling"></eg-grid-action>
46
47   <eg-grid-action label="[% l('Full Details') %]" 
48     handler="showFullDetails"></eg-grid-action>
49
50   <eg-grid-field label="[% ('Balance Owed') %]" path='summary.balance_owed'></eg-grid-field>
51   <eg-grid-field label="[% ('Bill #') %]" path='id'></eg-grid-field>
52   <eg-grid-field label="[% ('Start') %]" path='xact_start'></eg-grid-field>
53   <eg-grid-field label="[% ('Total Billed') %]" path='summary.total_owed'></eg-grid-field>
54   <eg-grid-field label="[% ('Total Paid') %]" path='summary.total_paid'></eg-grid-field>
55   <eg-grid-field label="[% ('Type') %]" path='xact_type'></eg-grid-field>
56
57   <!-- receipt data -->
58   <eg-grid-field path='summary.last_billing_type' required></eg-grid-field>
59
60   <eg-grid-field label="[% l('Title') %]" name="title"
61     path='circulation.target_copy.call_number.record.simple_record.title'>
62     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.record_id}}">{{item.title}}</a>
63   </eg-grid-field>
64   <!-- fetch the record ID so we can link to it.  hide it by default -->
65   <eg-grid-field path="circulation.target_copy.call_number.record.id" 
66     label="[% l('Record ID') %]" name="record_id" required hidden>
67   </eg-grid-field>
68
69   <eg-grid-field label="[% l('Barcode') %]" required
70     path='circulation.target_copy.barcode' name="copy_barcode">
71     <a href="./cat/item/{{item.copy_id}}" target="_self">
72       {{item.copy_barcode}}
73     </a>
74   </eg-grid-field>
75   <!-- fetch the copy ID so we can link to it.  hide it by default -->
76   <eg-grid-field path="circulation.target_copy.id" 
77     label="[% l('Copy ID') %]" name="copy_id" required hidden>
78   </eg-grid-field>
79
80   <!-- virtual field -->
81   <eg-grid-field datatype="money" label="[% ('Payment Pending') %]" 
82     name="payment_pending"></eg-grid-field>
83
84   <!-- import all circ fields, hidden by default -->
85   <eg-grid-field path='circulation.*' hidden> </eg-grid-field>
86
87   <eg-grid-field path='circulation.target_copy.*' hidden> </eg-grid-field>
88   
89 </eg-grid>
90