lp1635386 Items Column & Styles for Bill Item Status
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_bills_list.tt2
index b83196f..ad1db19 100644 (file)
@@ -6,7 +6,9 @@
   grid-controls="gridControls"
   revision="gridRevision"
   persist-key="circ.patron.bills"
-  dateformat="{{$root.egDateAndTimeFormat}}">
+  dateformat="{{$root.egDateAndTimeFormat}}"
+  row-class="colorizeBillsList"
+  status-cell="statusIconColumn">
 
   <eg-grid-menu-item label="[% l('Bill Patron') %]" 
     handler="showBillDialog"></eg-grid-menu-item>
   <eg-grid-action label="[% l('Full Details') %]" 
     handler="showFullDetails"></eg-grid-action>
 
-  <eg-grid-field label="[% ('Balance Owed') %]" path='summary.balance_owed'></eg-grid-field>
-  <eg-grid-field label="[% ('Bill #') %]" path='id'></eg-grid-field>
-  <eg-grid-field label="[% ('Start') %]" path='xact_start' datatype="timestamp"></eg-grid-field>
-  <eg-grid-field label="[% ('Total Billed') %]" path='summary.total_owed'></eg-grid-field>
-  <eg-grid-field label="[% ('Total Paid') %]" path='summary.total_paid'></eg-grid-field>
-  <eg-grid-field label="[% ('Type') %]" path='xact_type'></eg-grid-field>
+  <eg-grid-field label="[% l('Balance Owed') %]" path='summary.balance_owed' required></eg-grid-field>
+  <eg-grid-field label="[% l('Bill #') %]" path='id'></eg-grid-field>
+  <eg-grid-field label="[% l('Start') %]" path='xact_start' datatype="timestamp"></eg-grid-field>
+  <eg-grid-field label="[% l('Total Billed') %]" path='summary.total_owed'></eg-grid-field>
+  <eg-grid-field label="[% l('Total Paid') %]" path='summary.total_paid'></eg-grid-field>
+  <eg-grid-field label="[% l('Type') %]" path='xact_type'></eg-grid-field>
 
   <!-- receipt data -->
   <eg-grid-field path='summary.last_billing_type' required></eg-grid-field>
   </eg-grid-field>
 
   <eg-grid-field path="circulation.target_copy.circ_modifier" 
-    label="[% l('Circulation Modifier') %]" name="circ_modifier">
+    label="[% l('Circulation Modifier') %]" name="circ_modifier" hidden>
   </eg-grid-field>
+
+  <eg-grid-field path="circulation.target_copy.circ_lib.shortname"
+    label="[% l('Circulation Library') %]" name="circ_lib" hidden>
+  </eg-grid-field>
+
+  <eg-grid-field label="[% l('Location') %]" name="xact_location">
+    {{item['grocery.billing_location.shortname']||item['circulation.circ_lib.shortname']}}
+  </eg-grid-field>
+
   <!-- virtual field -->
-  <eg-grid-field datatype="money" label="[% ('Payment Pending') %]" 
+  <eg-grid-field datatype="money" label="[% l('Payment Pending') %]" 
     name="payment_pending"></eg-grid-field>
 
   <!-- import all circ fields, hidden by default -->
+  <eg-grid-field path='grocery.*' hidden> </eg-grid-field>
+  <eg-grid-field label="[% l('Billing Location') %]"
+    path='grocery.billing_location.shortname' required hidden> </eg-grid-field>
+  <eg-grid-field path='circulation.circ_lib' required hidden></eg-grid-field>
+  <eg-grid-field path='circulation.duration' required hidden></eg-grid-field>
+  <eg-grid-field path='circulation.due_date' dateonlyinterval="circulation.duration" datecontext="circulation.circ_lib" required hidden></eg-grid-field>
+  <eg-grid-field label="[% l('Stop Fines') %]" path="circulation.stop_fines" hidden required>  </eg-grid-field>
+  <eg-grid-field path="circulation.checkin_time" hidden required></eg-grid-field>
   <eg-grid-field path='circulation.*' hidden> </eg-grid-field>
+  <eg-grid-field label="[% l('Checkout / Renewal Library') %]"
+    path='circulation.circ_lib.shortname' required hidden> </eg-grid-field>
 
   <eg-grid-field path='circulation.target_copy.*' hidden> </eg-grid-field>