]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2
a6be0ccfe7943ed21b3194e85fc8dbb88018ff8c
[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   dateformat="{{$root.egDateAndTimeFormat}}">
10
11   <eg-grid-menu-item label="[% l('Bill Patron') %]" 
12     handler="showBillDialog"></eg-grid-menu-item>
13
14   <eg-grid-menu-item label="[% l('History') %]" 
15     handler="showHistory"></eg-grid-menu-item>
16
17   <eg-grid-menu-item label="[% l('Check All Refunds') %]" 
18     handler="selectRefunds"></eg-grid-menu-item>
19
20   <eg-grid-action label="[% l('Print Bills') %]" 
21     handler="printBills"></eg-grid-action>
22
23   <!--
24   need to decide if these are necessary here w/ inline links
25   to record and copy details (though they could be hidden).
26   it's misleading to allow the user to select multiple bills
27   but only open the link to one
28
29   <eg-grid-action label="[% l('Show in Catalog') %]" 
30     handler=""></eg-grid-action>
31
32   <eg-grid-action label="[% l('Show Item Details') %]" 
33     handler=""></eg-grid-action>
34   -->
35
36   <eg-grid-action label="[% l('Void All Billings') %]" 
37     handler="voidAllBillings"></eg-grid-action>
38
39   <eg-grid-action label="[% l('Adjust to Zero') %]" 
40     handler="adjustToZero"></eg-grid-action>
41
42   <eg-grid-action label="[% l('Refund') %]" 
43     handler="refundXact"></eg-grid-action>
44
45   <eg-grid-action label="[% l('Add Billing') %]" 
46     handler="addBilling"></eg-grid-action>
47
48   <eg-grid-action label="[% l('Full Details') %]" 
49     handler="showFullDetails"></eg-grid-action>
50
51   <eg-grid-field label="[% l('Balance Owed') %]" path='summary.balance_owed'></eg-grid-field>
52   <eg-grid-field label="[% l('Bill #') %]" path='id'></eg-grid-field>
53   <eg-grid-field label="[% l('Start') %]" path='xact_start' datatype="timestamp"></eg-grid-field>
54   <eg-grid-field label="[% l('Total Billed') %]" path='summary.total_owed'></eg-grid-field>
55   <eg-grid-field label="[% l('Total Paid') %]" path='summary.total_paid'></eg-grid-field>
56   <eg-grid-field label="[% l('Type') %]" path='xact_type'></eg-grid-field>
57
58   <!-- receipt data -->
59   <eg-grid-field path='summary.last_billing_type' required></eg-grid-field>
60
61   <eg-grid-field label="[% l('Title') %]" name="title"
62     path='circulation.target_copy.call_number.record.simple_record.title'>
63     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.record_id}}">{{item.title}}</a>
64   </eg-grid-field>
65   <!-- fetch the record ID so we can link to it.  hide it by default -->
66   <eg-grid-field path="circulation.target_copy.call_number.record.id" 
67     label="[% l('Record ID') %]" name="record_id" required hidden>
68   </eg-grid-field>
69
70   <eg-grid-field label="[% l('Barcode') %]" required
71     path='circulation.target_copy.barcode' name="copy_barcode">
72     <a href="./cat/item/{{item.copy_id}}" target="_self">
73       {{item.copy_barcode}}
74     </a>
75   </eg-grid-field>
76   <!-- fetch the copy ID so we can link to it.  hide it by default -->
77   <eg-grid-field path="circulation.target_copy.id" 
78     label="[% l('Copy ID') %]" name="copy_id" required hidden>
79   </eg-grid-field>
80
81   <eg-grid-field path="circulation.target_copy.circ_modifier" 
82     label="[% l('Circulation Modifier') %]" name="circ_modifier" hidden>
83   </eg-grid-field>
84
85   <eg-grid-field path="circulation.target_copy.circ_lib.shortname"
86     label="[% l('Circulation Library') %]" name="circ_lib" hidden>
87   </eg-grid-field>
88
89   <eg-grid-field label="[% l('Location') %]" name="xact_location">
90     {{item['grocery.billing_location.shortname']||item['circulation.circ_lib.shortname']}}
91   </eg-grid-field>
92
93   <!-- virtual field -->
94   <eg-grid-field datatype="money" label="[% l('Payment Pending') %]" 
95     name="payment_pending"></eg-grid-field>
96
97   <!-- import all circ fields, hidden by default -->
98   <eg-grid-field path='grocery.*' hidden> </eg-grid-field>
99   <eg-grid-field label="[% l('Billing Location') %]"
100     path='grocery.billing_location.shortname' required hidden> </eg-grid-field>
101   <eg-grid-field path='circulation.circ_lib' required hidden></eg-grid-field>
102   <eg-grid-field path='circulation.duration' required hidden></eg-grid-field>
103   <eg-grid-field path='circulation.due_date' dateonlyinterval="circulation.duration" datecontext="circulation.circ_lib" required hidden></eg-grid-field>
104   <eg-grid-field path='circulation.*' hidden> </eg-grid-field>
105   <eg-grid-field label="[% l('Checkout / Renewal Library') %]"
106     path='circulation.circ_lib.shortname' required hidden> </eg-grid-field>
107
108   <eg-grid-field path='circulation.target_copy.*' hidden> </eg-grid-field>
109   
110 </eg-grid>
111