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