From: miker Date: Mon, 24 Aug 2009 14:38:46 +0000 (+0000) Subject: adjusting indentation for readability X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dec75da26c7060c19edad6b55772ba2cecd90a67;p=evergreen%2Ftadl.git adjusting indentation for readability git-svn-id: svn://svn.open-ils.org/ILS/trunk@13921 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm index 0625bfa0c7..fd2b3eaa59 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -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;