use more correct test (rather than a side-effect) to detect short durations circs
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 25 Jul 2008 17:34:38 +0000 (17:34 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 25 Jul 2008 17:34:38 +0000 (17:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10130 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index 8b0199f..49ae2f1 100644 (file)
@@ -579,7 +579,7 @@ sub generate_fines {
             $fine_interval =~ s/(\d{2}):(\d{2}):(\d{2})/$1 h $2 m $3 s/o;
                        $fine_interval = interval_to_seconds( $fine_interval );
        
-                       if ( interval_to_seconds( $c->fine_interval ) >= interval_to_seconds('1d') ) {  
+                       if ( $fine_interval >= interval_to_seconds('1d') ) {    
                                my $tz_offset_s = 0;
                                if ($due_dt->strftime('%z') =~ /(-|\+)(\d{2}):?(\d{2})/) {
                                        $tz_offset_s = $1 . interval_to_seconds( "${2}h ${3}m");