From: Mike Risher <mrisher@catalyte.io>
Date: Thu, 13 Feb 2020 21:02:09 +0000 (+0000)
Subject: lp1668352 Add barcode to patron neg balance grid
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=eea266a15ded37c91ae272db33fac0548035f8d5;p=evergreen%2Fequinox.git

lp1668352 Add barcode to patron neg balance grid

Add a barcode column to the existing Patron Negative Balance Grid.
It should be hyperlinked and link to the relevant patron.

Signed-off-by: Mike Risher <mrisher@catalyte.io>
Signed-off-by: Dawn Dale <ddale@georgialibraries.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
---

diff --git a/Open-ILS/src/templates/staff/admin/local/circ/neg_balance_users.tt2 b/Open-ILS/src/templates/staff/admin/local/circ/neg_balance_users.tt2
index 8291796a26..b7af3cbfdb 100644
--- a/Open-ILS/src/templates/staff/admin/local/circ/neg_balance_users.tt2
+++ b/Open-ILS/src/templates/staff/admin/local/circ/neg_balance_users.tt2
@@ -39,8 +39,12 @@
 
   <eg-grid-action handler="get_user"
     label="[% l('Retrieve Patron') %]"></eg-grid-action>
-
   <eg-grid-field label="[% l('Barred') %]" path='usr.barred'></eg-grid-field>
+  <eg-grid-field label="[% l('Barcode') %]" path="usr.card.barcode">
+    <a href="./circ/patron/{{item.usr.id()}}/checkout/" target="_blank">
+      {{item.usr.card().barcode()}}
+    </a>
+  </eg-grid-field>
   <eg-grid-field label="[% l('Date of Birth') %]" dateformat="{{$root.egDateFormat}}" datatype="timestamp" path='usr.dob'></eg-grid-field>
   <eg-grid-field label="[% l('Last Name') %]" path='usr.family_name'></eg-grid-field>
   <eg-grid-field label="[% l('First Name') %]" path='usr.first_given_name'></eg-grid-field>
@@ -48,8 +52,8 @@
   <eg-grid-field label="[% l('Balance Owed') %]" path='balance_owed'></eg-grid-field>
   <eg-grid-field label="[% l('Last Billing Activity') %]" 
     path='last_billing_activity' datatype='timestamp'></eg-grid-field>
-
   <eg-grid-field path='usr.*' parent-idl-class="au" hidden></eg-grid-field>
+  
 </eg-grid>