* updates to make acquisition compatible with suggestions & serials
[wip/koha-chris_n.git] / acqui / recieveorder.pl
1 #!/usr/bin/perl
2
3 # $Id$
4
5 #script to show display basket of orders
6 #written by chris@katipo.co.nz 24/2/2000
7
8
9 # Copyright 2000-2002 Katipo Communications
10 #
11 # This file is part of Koha.
12 #
13 # Koha is free software; you can redistribute it and/or modify it under the
14 # terms of the GNU General Public License as published by the Free Software
15 # Foundation; either version 2 of the License, or (at your option) any later
16 # version.
17 #
18 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
19 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
20 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License along with
23 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
24 # Suite 330, Boston, MA  02111-1307 USA
25 use strict;
26 use CGI;
27 use C4::Auth;
28 use C4::Output;
29 use C4::Interface::CGI::Output;
30 use C4::Database;
31 use HTML::Template;
32 use C4::Acquisition;
33
34 my $input=new CGI;
35 my $supplierid=$input->param('supplierid');
36 my ($count,@booksellers)=bookseller($supplierid);
37
38 my ($template, $loggedinuser, $cookie)
39     = get_template_and_user({template_name => "acqui/recieveorder.tmpl",
40                              query => $input,
41                              type => "intranet",
42                              authnotrequired => 0,
43                              flagsrequired => {acquisition => 1},
44                              debug => 1,
45                              });
46
47 $template->param(
48                 name => $booksellers[0]->{'name'},
49                 supplierid => $supplierid,
50                 );
51
52 output_html_with_http_headers $input, $cookie, $template->output;