[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5f7fd50c19ccfcb698a48b5c20f6bffe5ab7fea9

Evergreen Git git at git.evergreen-ils.org
Tue Mar 20 16:15:26 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  5f7fd50c19ccfcb698a48b5c20f6bffe5ab7fea9 (commit)
      from  2bebbd99cf600d57ca6e8513dd833fc5e52461e2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5f7fd50c19ccfcb698a48b5c20f6bffe5ab7fea9
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Thu Mar 15 17:04:51 2012 -0400

    Backdate into grace period - include last second
    
    The last second of the grace period is ignored on backdated checkins, but
    should still count as "in" the grace period.
    
    This fixes that.
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm
index 9daa10c..613447f 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm
@@ -47,7 +47,7 @@ sub void_overdues {
         my $date = DateTime::Format::ISO8601->parse_datetime($backdate);
         my $due_date = DateTime::Format::ISO8601->parse_datetime(cleanse_ISO8601($circ->due_date))->epoch;
         my $grace_period = extend_grace_period( $class, $circ->circ_lib, $circ->due_date, OpenSRF::Utils->interval_to_seconds($circ->grace_period), $e);
-        if($date->epoch < $due_date + $grace_period) {
+        if($date->epoch <= $due_date + $grace_period) {
             $logger->info("backdate $backdate is within grace period, voiding all");
         } else {
             $backdate = $U->epoch2ISO8601($date->epoch + $interval);

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/Application/Circ/CircCommon.pm     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list