From 49d9cd14364d50f0ca1f309b6766d635952c6809 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Wed, 1 Feb 2012 18:11:52 -0500 Subject: [PATCH] Booking: make pick up interface show resources captured for reservation ... ... even beyond the first day of the reservation. I can think of no reason why this limitation existed in the first place. Also, just replace naive_start_of_day() with "today" Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm index 5e75fa840d..bb31f7dffc 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm @@ -625,7 +625,6 @@ NOTES sub naive_ts_string {strftime("%F %T", localtime($_[0] || time));} -sub naive_start_of_day {strftime("%F", localtime($_[0] || time))." 00:00:00";} # Return a map of bresv or an ilsevent on failure. sub get_uncaptured_bresv_for_brsrc { @@ -1209,7 +1208,7 @@ sub get_captured_reservations { "usr" => $patron->id, "capture_time" => {"!=" => undef}, "pickup_time" => undef, - "start_time" => {">=" => naive_start_of_day()}, + "start_time" => {"!=" => undef}, "cancel_time" => undef }, $bresv_flesh @@ -1230,7 +1229,7 @@ sub get_captured_reservations { return $e->search_booking_reservation([ { "usr" => $patron->id, - "return_time" => {">=" => naive_start_of_day()}, + "return_time" => {">=" => "today"}, "cancel_time" => undef }, $bresv_flesh -- 2.11.0