adjusting indentation for readability
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 24 Aug 2009 14:38:46 +0000 (14:38 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 24 Aug 2009 14:38:46 +0000 (14:38 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13921 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 0625bfa..fd2b3ea 100644 (file)
@@ -768,20 +768,19 @@ sub generate_fines {
 
                        $self->method_lookup('open-ils.storage.transaction.commit')->run;
 
-            if(0) { # caluclate penalties inline.  Needs to be tested.
-                OpenILS::Utils::Penalty->calculate_penalties(
-                    undef, $c->usr->to_fieldmapper->id.'', $c->circ_lib->to_fieldmapper->id.'');
-
-            } else {
+                       if(0) { # caluclate penalties inline.  Needs to be tested.
+                               OpenILS::Utils::Penalty->calculate_penalties(
+                                       undef, $c->usr->to_fieldmapper->id.'', $c->circ_lib->to_fieldmapper->id.'');
+                       } else {
 
-                           $penalty->request(
+                               $penalty->request(
                                    'open-ils.penalty.patron_penalty.calculate',
                                    { patron    => $c->usr->to_fieldmapper,
                                    update      => 1,
                                    background  => 1,
                                    }
                            )->gather(1);
-            }
+                       }
 
                } catch Error with {
                        my $e = shift;