View | Details | Raw Unified | Return to bug 33653
Collapse All | Expand All

(-)a/Koha/Acquisition/Orders.pm (-5 / +2 lines)
Lines 130-139 sub filter_by_lates { Link Here
130
                  && !C4::Context->IsSuperLibrarian
130
                  && !C4::Context->IsSuperLibrarian
131
                ? ( 'borrower.branchcode' => C4::Context->userenv->{branch} )
131
                ? ( 'borrower.branchcode' => C4::Context->userenv->{branch} )
132
                : ()
132
                : ()
133
            ),
133
            )
134
135
            ( orderstatus => { '-not_in' => ['cancelled', 'complete'] } ),
136
137
        },
134
        },
138
        {
135
        {
139
            '+select' => [
136
            '+select' => [
Lines 145-151 sub filter_by_lates { Link Here
145
            join => { 'basketno' => 'booksellerid' },
142
            join => { 'basketno' => 'booksellerid' },
146
            prefetch => {'basketno' => 'booksellerid'},
143
            prefetch => {'basketno' => 'booksellerid'},
147
        }
144
        }
148
    );
145
    )->filter_by_active;
149
}
146
}
150
147
151
=head3 filter_by_active
148
=head3 filter_by_active
(-)a/acqui/lateorders.pl (-2 / +1 lines)
Lines 50-56 use C4::Output qw( output_html_with_http_headers ); Link Here
50
use C4::Context;
50
use C4::Context;
51
use C4::Letters qw( SendAlerts GetLetters );
51
use C4::Letters qw( SendAlerts GetLetters );
52
use Koha::DateUtils qw( dt_from_string );
52
use Koha::DateUtils qw( dt_from_string );
53
use Koha::Acquisition::Orders qw( filter_by_lates );
53
use Koha::Acquisition::Orders;
54
use Koha::CsvProfiles;
54
use Koha::CsvProfiles;
55
55
56
my $input = CGI->new;
56
my $input = CGI->new;
57
- 

Return to bug 33653