X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=acqui%2Funcertainprice.pl;h=a90c75f41eb3eba0cc7de829da17931d9dff93e1;hb=d64de2bd0d4807700993727f3164fac1656c95b8;hp=0b680d85d49e000936260d74477d6889a7524347;hpb=1d089b86f7701910ec015a28c9f046d0f30f49a6;p=koha.git diff --git a/acqui/uncertainprice.pl b/acqui/uncertainprice.pl index 0b680d85d4..a90c75f41e 100755 --- a/acqui/uncertainprice.pl +++ b/acqui/uncertainprice.pl @@ -8,18 +8,18 @@ # # 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 @@ -46,16 +46,16 @@ The bookseller who we want to display the orders of. use strict; use warnings; -use C4::Input; use C4::Auth; use C4::Output; -use CGI; +use CGI qw ( -utf8 ); -use C4::Bookseller qw/GetBookSellerFromId/; use C4::Bookseller::Contact; use C4::Acquisition qw/SearchOrders GetOrder ModOrder/; use C4::Biblio qw/GetBiblioData/; +use Koha::Acquisition::Bookseller; + my $input=new CGI; my ($template, $loggedinuser, $cookie) @@ -71,7 +71,7 @@ my $booksellerid = $input->param('booksellerid'); my $basketno = $input->param('basketno'); my $op = $input->param('op'); my $owner = $input->param('owner') || 0 ; # flag to see only "my" orders, or everyone orders -my $bookseller = &GetBookSellerFromId($booksellerid); +my $bookseller = Koha::Acquisition::Bookseller->fetch({ id => $booksellerid }); #show all orders that have uncertain price for the bookseller my $pendingorders = SearchOrders({ @@ -128,6 +128,7 @@ $template->param( uncertainpriceorders => \@orders, booksellernotes => $bookseller->{'notes'}, basketcount => $bookseller->{'basketcount'}, subscriptioncount => $bookseller->{'subscriptioncount'}, + active => $bookseller->{active}, owner => $owner, scriptname => "/cgi-bin/koha/acqui/uncertainprice.pl"); $template->{'VARS'}->{'contacts'} = $bookseller->{'contacts'};