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">
13 <eg-grid-menu-item label="[% l('Bill Patron') %]"
14 handler="showBillDialog"></eg-grid-menu-item>
16 <eg-grid-menu-item label="[% l('History') %]"
17 handler="showHistory"></eg-grid-menu-item>
19 <eg-grid-menu-item label="[% l('Check All Refunds') %]"
20 handler="selectRefunds"></eg-grid-menu-item>
22 <eg-grid-action label="[% l('Print Bills') %]"
23 handler="printBills"></eg-grid-action>
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
31 <eg-grid-action label="[% l('Show in Catalog') %]"
32 handler=""></eg-grid-action>
34 <eg-grid-action label="[% l('Show Item Details') %]"
35 handler=""></eg-grid-action>
38 <eg-grid-action label="[% l('Void All Billings') %]"
39 handler="voidAllBillings"></eg-grid-action>
41 <eg-grid-action label="[% l('Adjust to Zero') %]"
42 handler="adjustToZero"></eg-grid-action>
44 <eg-grid-action label="[% l('Refund') %]"
45 handler="refundXact"></eg-grid-action>
47 <eg-grid-action label="[% l('Add Billing') %]"
48 handler="addBilling"></eg-grid-action>
50 <eg-grid-action label="[% l('Full Details') %]"
51 handler="showFullDetails"></eg-grid-action>
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>
60 <eg-grid-field path="circulation.target_copy.call_number.label"
61 label="[% l('Call Number') %]" name="call_number">
64 <eg-grid-field path="circulation.target_copy.call_number.owning_lib.shortname"
65 label="[% l('Owning Library') %]" name="owning_lib">
68 <eg-grid-field path="circulation.target_copy.location.name"
69 label="[% l('Shelving Location') %]" name="location">
73 <eg-grid-field path='summary.last_billing_type' required></eg-grid-field>
75 <eg-grid-field label="[% l('Title') %]" name="title"
76 path='circulation.target_copy.call_number.record.simple_record.title'>
77 <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.record_id}}">{{item.title}}</a>
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>
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">
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>
95 <eg-grid-field path="circulation.target_copy.circ_modifier"
96 label="[% l('Circulation Modifier') %]" name="circ_modifier" hidden>
99 <eg-grid-field path="circulation.target_copy.circ_lib.shortname"
100 label="[% l('Circulation Library') %]" name="circ_lib" hidden>
103 <eg-grid-field label="[% l('Billing Location') %]" name="xact_location">
104 {{item['grocery.billing_location.shortname']||item['circulation.circ_lib.shortname']}}
107 <!-- virtual field -->
108 <eg-grid-field datatype="money" label="[% l('Payment Pending') %]"
109 name="payment_pending"></eg-grid-field>
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>
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>