X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=circ%2Fpendingreserves.pl;h=7fc02a132bcd2822dffd620625385f2ad29ec974;hb=a13c0db0c99d22189f2bd4f424b7919357e83010;hp=1c866eb63e3378b7de6882243acc7940aac7fe18;hpb=5961c08a9e6573602a9c423919f8a7960d922df8;p=koha_gimpoz diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index 1c866eb63e..7fc02a132b 100755 --- a/circ/pendingreserves.pl +++ b/circ/pendingreserves.pl @@ -66,9 +66,9 @@ my $author; my ( $year, $month, $day ) = Today(); my $todaysdate = sprintf("%-04.4d-%-02.2d-%02.2d", $year, $month, $day); my $yesterdaysdate = sprintf("%-04.4d-%-02.2d-%02.2d", Add_Delta_YMD($year, $month, $day, 0, 0, -1)); -# Find 10 years ago for the default shelf pull start and end dates -# A default of the prior day's holds is a reasonable way to pull holds -my $pastdate = sprintf("%-04.4d-%-02.2d-%02.2d", Add_Delta_YMD($year, $month, $day, -10, 0, 0)); +#changed from delivered range of 10 years-yesterday to 2 days ago-today +# Find two days ago for the default shelf pull start and end dates +my $pastdate = sprintf("%-04.4d-%-02.2d-%02.2d", Add_Delta_YMD($year, $month, $day, 0, 0, -2)); # Predefine the start and end dates if they are not already defined $startdate =~ s/^\s+//; @@ -80,7 +80,7 @@ if (!defined($startdate) or $startdate eq "") { $startdate = format_date($pastdate); } if (!defined($enddate) or $enddate eq "") { - $enddate = format_date($yesterdaysdate); + $enddate = format_date($todaysdate); }