]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2
LP1869898 Angular staff cat place hold from patron
[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='summary.xact_type'></eg-grid-field>
59
60   <eg-grid-field path="circulation.target_copy.call_number.label"
61     label="[% l('Call Number') %]" name="call_number">
62   </eg-grid-field>
63
64   <eg-grid-field path="circulation.target_copy.call_number.owning_lib.shortname"
65     label="[% l('Owning Library') %]" name="owning_lib">
66   </eg-grid-field>
67
68   <eg-grid-field path="circulation.target_copy.location.name"
69     label="[% l('Shelving Location') %]" name="location">
70   </eg-grid-field>
71
72   <!-- receipt data -->
73   <eg-grid-field path='summary.last_billing_type' required></eg-grid-field>
74
75   <eg-grid-field label="[% l('Title') %]" name="title"
76     path='circulation.target_copy.call_number.record.simple_record.title'>
77     <a href="/eg2/staff/catalog/record/{{item.record_id}}">{{item.title}}</a>
78   </eg-grid-field>
79   <!-- fetch the record ID so we can link to it.  hide it by default -->
80   <eg-grid-field path="circulation.target_copy.call_number.record.id" 
81     label="[% l('Record ID') %]" name="record_id" required hidden>
82   </eg-grid-field>
83
84   <eg-grid-field label="[% l('Barcode') %]" required
85     path='circulation.target_copy.barcode' name="copy_barcode">
86     <a href="./cat/item/{{item.copy_id}}" target="_self">
87       {{item.copy_barcode}}
88     </a>
89   </eg-grid-field>
90   <!-- fetch the item ID so we can link to it.  hide it by default -->
91   <eg-grid-field path="circulation.target_copy.id" 
92     label="[% l('Item ID') %]" name="copy_id" required hidden>
93   </eg-grid-field>
94
95   <eg-grid-field path="circulation.target_copy.circ_modifier" 
96     label="[% l('Circulation Modifier') %]" name="circ_modifier" hidden>
97   </eg-grid-field>
98
99   <eg-grid-field path="circulation.target_copy.circ_lib.shortname"
100     label="[% l('Circulation Library') %]" name="circ_lib" hidden>
101   </eg-grid-field>
102
103   <eg-grid-field label="[% l('Billing Location') %]" name="xact_location">
104     {{item['grocery.billing_location.shortname']||item['circulation.circ_lib.shortname']}}
105   </eg-grid-field>
106
107   <!-- virtual field -->
108   <eg-grid-field datatype="money" label="[% l('Payment Pending') %]" 
109     name="payment_pending"></eg-grid-field>
110
111   <!-- import all circ fields, hidden by default -->
112   <eg-grid-field path='grocery.*' hidden> </eg-grid-field>
113   <eg-grid-field label="[% l('Grocery Billing Location') %]"
114     path='grocery.billing_location.shortname' required hidden> </eg-grid-field>
115   <eg-grid-field path='circulation.circ_lib' required hidden></eg-grid-field>
116   <eg-grid-field path='circulation.duration' required hidden></eg-grid-field>
117   <eg-grid-field path='circulation.due_date' dateonlyinterval="circulation.duration" datecontext="circulation.circ_lib" required hidden></eg-grid-field>
118   <eg-grid-field label="[% l('Stop Fines') %]" path="circulation.stop_fines" required hidden></eg-grid-field>
119   <eg-grid-field path="circulation.checkin_time" required hidden></eg-grid-field>
120   <eg-grid-field path='circulation.*' hidden> </eg-grid-field>
121   <eg-grid-field label="[% l('Checkout / Renewal Library') %]"
122     path='circulation.circ_lib.shortname' required hidden> </eg-grid-field>
123
124   <eg-grid-field path='circulation.target_copy.*' hidden> </eg-grid-field>
125     <eg-grid-field path='circulation.target_copy.call_number.*' hidden required></eg-grid-field>
126     <eg-grid-field path='circulation.target_copy.call_number.owning_lib.*' hidden required></eg-grid-field>
127     <eg-grid-field path='circulation.target_copy.location.*' hidden required></eg-grid-field>
128     <eg-grid-field path='summary.*' hidden required></eg-grid-field>
129
130 </eg-grid>
131