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