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

(-)a/acqui/basketheader.pl (-1 / +4 lines)
Lines 110-116 if ( $op eq 'add_form' ) { Link Here
110
        $template->param(contractloop => \@contractloop,
110
        $template->param(contractloop => \@contractloop,
111
                         basketcontractnumber => $basket->{'contractnumber'});
111
                         basketcontractnumber => $basket->{'contractnumber'});
112
    }
112
    }
113
    my @booksellers = Koha::Acquisition::Booksellers->search;
113
    my @booksellers = Koha::Acquisition::Booksellers->search(
114
                        undef,
115
                        { order_by => { -asc => 'name' } } );
116
114
    $template->param( add_form => 1,
117
    $template->param( add_form => 1,
115
                    basketname => $basket->{'basketname'},
118
                    basketname => $basket->{'basketname'},
116
                    basketnote => $basket->{'note'},
119
                    basketnote => $basket->{'note'},
(-)a/acqui/booksellers.pl (-1 / +3 lines)
Lines 85-91 my @suppliers; Link Here
85
if ($booksellerid) {
85
if ($booksellerid) {
86
    push @suppliers, scalar Koha::Acquisition::Booksellers->find( $booksellerid );
86
    push @suppliers, scalar Koha::Acquisition::Booksellers->find( $booksellerid );
87
} else {
87
} else {
88
    @suppliers = Koha::Acquisition::Booksellers->search({ name => $supplier });
88
    @suppliers = Koha::Acquisition::Booksellers->search(
89
                        { name => { -like => "%$supplier%" } },
90
                        { order_by => { -asc => 'name' } } );
89
}
91
}
90
92
91
my $supplier_count = @suppliers;
93
my $supplier_count = @suppliers;
(-)a/acqui/invoices.pl (-1 / +1 lines)
Lines 90-96 if ( $op and $op eq 'do_search' ) { Link Here
90
}
90
}
91
91
92
# Build suppliers list
92
# Build suppliers list
93
my @suppliers      = Koha::Acquisition::Booksellers->search;
93
my @suppliers      = Koha::Acquisition::Booksellers->search( undef, { order_by => { -asc => 'name' } } );
94
my $suppliers_loop = [];
94
my $suppliers_loop = [];
95
my $suppliername;
95
my $suppliername;
96
foreach (@suppliers) {
96
foreach (@suppliers) {
(-)a/acqui/transferorder.pl (-1 / +3 lines)
Lines 117-123 if( $basketno && $ordernumber) { Link Here
117
    # Search for booksellers to transfer from/to
117
    # Search for booksellers to transfer from/to
118
    $op = '' unless $op;
118
    $op = '' unless $op;
119
    if( $op eq "do_search" ) {
119
    if( $op eq "do_search" ) {
120
        my @booksellers = Koha::Acquisition::Booksellers->search({ name => $query });
120
        my @booksellers = Koha::Acquisition::Booksellers->search(
121
                            { name     => { -like => "%$query%" } },
122
                            { order_by => { -asc => 'name' } } );
121
        $template->param(
123
        $template->param(
122
            query => $query,
124
            query => $query,
123
            do_search => 1,
125
            do_search => 1,
(-)a/serials/acqui-search-result.pl (-2 / +3 lines)
Lines 62-68 my ($template, $loggedinuser, $cookie) Link Here
62
                 });
62
                 });
63
63
64
my $supplier=$query->param('supplier');
64
my $supplier=$query->param('supplier');
65
my @suppliers = Koha::Acquisition::Booksellers->search({ name => $supplier });
65
my @suppliers = Koha::Acquisition::Booksellers->search(
66
                    { name     => { -like => "%$supplier%" } },
67
                    { order_by => { -asc => 'name' } } );
66
68
67
#build result page
69
#build result page
68
my $loop_suppliers = [];
70
my $loop_suppliers = [];
69
- 

Return to bug 19130