Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 99 lines (85 sloc) 3.221 kb
#script to show suppliers and orders
#written by 23/2/2000
# Copyright 2000-2002 Katipo Communications
# 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 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., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
=head1 NAME
this script allow to update or create (if id == 0)
a supplier. This script is called from acqui/
=over 4
All informations regarding this supplier are listed on input parameter.
Here is the list :
supplier, id, company, company_postal, physical, company_phone,
physical, company_phone, company_fax, website, company_contact_name,
company_contact_position, contact_phone, contact_phone_2, contact_fax,
company_email, contact_notes, notes, status, publishers_imprints,
list_currency, gst, list_gst, invoice_gst, discount.
use C4::Bookseller;
use C4::Biblio;
use C4::Output;
use CGI;
use strict;
my $input=new CGI;
#print $input->header();
my $supplier=$input->param('supplier');
#print startpage;
my %data;
my $address=$input->param('physical');
my @addresses=split('\n',$address);
# warn "".$data{'contnotes'};
if($data{'name'}) {
if ($data{'id'}){
} else {
#redirect to
print $input->redirect("".$data{id});
} else {
print $input->redirect(""); # fail silently.
Jump to Line
Something went wrong with that request. Please try again.