X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=acqui%2Fmodordernotes.pl;h=a1008f028f540485a26a6952f98424a3b2bf1813;hb=30ed77dae60018b66d6f6f1813d67d3dbef51725;hp=74ccd186b7699db010a45ffefbe25b40596e811d;hpb=36074fba651560bef11423f2d1817ffc83c0045c;p=koha.git diff --git a/acqui/modordernotes.pl b/acqui/modordernotes.pl index 74ccd186b7..a1008f028f 100755 --- a/acqui/modordernotes.pl +++ b/acqui/modordernotes.pl @@ -3,18 +3,18 @@ # Copyright 2011 BibLibre SARL # This file is part of Koha. # -# Koha is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Koha is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Koha; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . =head1 NAME @@ -28,15 +28,16 @@ Modify just notes when basket is closed. use Modern::Perl; -use CGI; +use CGI qw ( -utf8 ); use C4::Auth; use C4::Output; use C4::Acquisition; -use C4::Bookseller qw( GetBookSellerFromId); + +use Koha::Acquisition::Bookseller; my $input = new CGI; my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { - template_name => 'acqui/modordernotes.tmpl', + template_name => 'acqui/modordernotes.tt', query => $input, type => 'intranet', authnotrequired => 0, @@ -50,7 +51,7 @@ my $referrer = $input->param('referrer') || $input->referer(); my $type = $input->param('type'); my $order = GetOrder($ordernumber); my $basket = GetBasket($order->{basketno}); -my ($bookseller) = GetBookSellerFromId($basket->{booksellerid}); +my $bookseller = Koha::Acquisition::Bookseller->fetch({ id => $basket->{booksellerid} }); if($op and $op eq 'save') {