Bug 14850: Funds from inactive budgets appear in 'Funds' dropdown on acqui/invoice.pl
[koha.git] / acqui / uncertainprice.pl
index 54668c4..4a559e3 100755 (executable)
@@ -43,8 +43,7 @@ The bookseller who we want to display the orders of.
 =cut
 
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use C4::Auth;
 use C4::Output;
@@ -54,6 +53,7 @@ use C4::Acquisition qw/SearchOrders GetOrder ModOrder/;
 use C4::Biblio qw/GetBiblioData/;
 
 use Koha::Acquisition::Booksellers;
+use Koha::Acquisition::Baskets;
 
 my $input=new CGI;
 
@@ -72,6 +72,8 @@ my $op = $input->param('op');
 my $owner = $input->param('owner') || 0 ; # flag to see only "my" orders, or everyone orders
 my $bookseller = Koha::Acquisition::Booksellers->find( $booksellerid );
 
+$template->param( basket => scalar Koha::Acquisition::Baskets->find($basketno) );
+
 #show all orders that have uncertain price for the bookseller
 my $pendingorders = SearchOrders({
     booksellerid => $booksellerid,