From: Michele Morgan <mmorgan@noblenet.org>
Date: Thu, 8 Aug 2019 18:01:00 +0000 (-0400)
Subject: LP1787415: Item Status checkout date and checkout workstation for renewed items
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a3cd173a646097fdd09d3b13ae489fbcca41ba99;p=evergreen%2Fequinox.git

LP1787415: Item Status checkout date and checkout workstation for renewed items

Fixes Item Status Quick Summary and Recent Circ History to show the original
checkout date and original checkout workstation for renewed items, instead of
values from the most recent circ row.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Dawn Dale <ddale@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
---

diff --git a/Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2
index fcadfe8f8d..2eb548d40c 100644
--- a/Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2
+++ b/Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2
@@ -137,14 +137,14 @@
   <div class="flex-row">
     <div class="flex-cell">[% l('Checkout Date') %]</div>
     <div class="flex-cell well">
-      {{circ.xact_start() | date:egDateAndTimeFormat}}
+      {{circ_summary.start_time() | date:egDateAndTimeFormat}}
     </div>
   </div>
 
   <div class="flex-row">
     <div class="flex-cell">[% l('Checkout Workstation') %]</div>
     <div class="flex-cell well">
-      {{circ.workstation().name()}}
+      {{circ_summary.checkout_workstation()}}
     </div>
   </div>
 
diff --git a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2
index 46a6b02f89..865ee4e083 100644
--- a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2
+++ b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2
@@ -53,7 +53,7 @@
     </div>
 
     <div class="flex-cell">[% l('Checkout Date') %]</div>
-    <div class="flex-cell well">{{circ.xact_start() | date:egDateAndTimeFormat}}</div>
+    <div class="flex-cell well">{{circ_summary.start_time() | date:egDateAndTimeFormat}}</div>
   </div>
 
   <div class="flex-row">
@@ -78,7 +78,7 @@
     </div>
 
     <div class="flex-cell">[% l('Checkout Workstation') %]</div>
-    <div class="flex-cell well">{{circ.workstation().name()}}</div>
+    <div class="flex-cell well">{{circ_summary.checkout_workstation()}}</div>
   </div>
 
   <div class="flex-row">