billing code fixes, including history billing
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Sep 2006 13:54:12 +0000 (13:54 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Sep 2006 13:54:12 +0000 (13:54 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6061 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor.pm

index 96c04fc..0dd6aa0 100644 (file)
@@ -1675,7 +1675,6 @@ sub _checked_out {
                        usr => $userid, 
                        checkin_time => undef, 
                        xact_finish => undef, 
-                       stop_fines => OILS_STOP_FINES_MAX_FINES 
                });
 
        
@@ -1709,7 +1708,7 @@ sub _checked_out {
        my $open = $e->search_action_circulation(
                {
                        usr                             => $userid, 
-                       stop_fines              => { '!=' => undef }, 
+                       stop_fines              => { in => [ qw/LOST CLAIMSRETURNED LONGOVERDUE/ ] }, 
                        xact_finish             => undef,
                        checkin_time    => undef,
                }
@@ -1920,7 +1919,7 @@ sub user_transaction_history {
        return $e->event unless $e->allowed('VIEW_USER_TRANSACTIONS');
 
        my $api = $self->api_name;
-       my @xact_finish  = (xact_finish => undef ) if ($api !~ /history$/);
+       my @xact_finish  = (xact_finish => undef ) if ($api /history.still_open$/);
 
        my @xacts = @{ $e->search_money_billable_transaction(
                [       { usr => $userid, @xact_finish },