5 #script to show display basket of orders
6 #written by chris@katipo.co.nz 24/2/2000
9 # Copyright 2000-2002 Katipo Communications
11 # This file is part of Koha.
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
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.
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
33 print $input->header();
34 my $id=$input->param('id');
35 my ($count,@booksellers)=bookseller($id);
38 print startmenu('acquisitions');
41 <form action=updatesupplier.pl method=post>
43 <input type=hidden name=id value=$id>
44 <FONT SIZE=6><em>Update: $booksellers[0]->{'name'}</em></FONT>
47 <TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left width="40%">
48 <tr valign=top bgcolor=#99cc33><td background="/images/background-mem.gif" colspan=2><B>COMPANY DETAILS</B></td></tr>
50 <TD><b>Company Name</b></td>
51 <td><input type=text size=20 name=company value="$booksellers[0]->{'name'}">
55 <TD>Postal Address</td>
56 <td><textarea name=company_postal cols=20 rows=3>$booksellers[0]->{'postal'}
60 <TD>Physical Address</td>
61 <td><textarea name=physical cols=20 rows=4>$booksellers[0]->{'address1'}
62 $booksellers[0]->{'address2'}
63 $booksellers[0]->{'address3'}
64 $booksellers[0]->{'address4'}
70 <td><input type=text size=20 name=company_phone value="$booksellers[0]->{'phone'}">
75 <td><input type=text size=20 name=company_fax value="$booksellers[0]->{'fax'}">
80 <td><input type=text size=20 name=website value="$booksellers[0]->{'url'}">
83 <tr valign=top bgcolor=#99cc33><td background="/images/background-mem.gif" colspan=2><B>CONTACT DETAILS</B></td></tr>
86 <td><input type=text size=20 name=company_contact_name value="$booksellers[0]->{'contact'}">
91 <td><input type=text size=20 name=company_contact_position value="$booksellers[0]->{'contpos'}">
96 <td><input type=text size=20 name=contact_phone value="$booksellers[0]->{'contphone'}">
100 <TD>Alternative Phone</td>
101 <td><input type=text size=20 name=contact_phone_2 value="$booksellers[0]->{'contaltphone'}">
106 <td><input type=text size=20 name=contact_fax value="$booksellers[0]->{'contfax'}">
111 <td><input type=text size=20 name=company_email value="$booksellers[0]->{'contemail'}">
116 <td><textarea name=notes cols=20 rows=4>$booksellers[0]->{'contnotes'}</textarea>
119 <tr valign=right><td><input type=image name=submit src=/images/save-changes.gif border=0 width=187 height=42 align=right></td></tr>
121 <img src="/images/holder.gif" width=32 height=250 align=left>
123 <table border=1 cellspacing=0 cellpadding=5 width="40%">
124 <tr valign=top bgcolor=#99cc33><td background="/images/background-mem.gif" colspan=2><B>CURRENT STATUS</B></td></tr>
127 <td><input type=radio name=status value=1
130 if ($booksellers[0]->{'active'}==1){
134 <input type=radio name=status value=0";
135 if ($booksellers[0]->{'active'}==0){
142 <tr valign=top bgcolor=#99cc33><td background="/images/background-mem.gif" colspan=2><B>ORDERING INFORMATION</B></td></tr>
144 <TD>Publishers and Imprints</td>
145 <td><textarea name=publishers_imprints cols=20 rows=4>$booksellers[0]->{'specialty'}</textarea>
149 <TD>List Prices are</td>
150 <td><select name=list_currency size=1>
154 if ($booksellers[0]->{'listprice'} eq 'NZD'){
159 if ($booksellers[0]->{'listprice'} eq 'AUD'){
164 if ($booksellers[0]->{'listprice'} eq 'USD'){
169 if ($booksellers[0]->{'listprice'} eq 'UKP'){
179 <TD>Invoice Prices are</td>
180 <td><select name=invoice_currency size=1>
184 if ($booksellers[0]->{'invoiceprice'} eq 'NZD'){
189 if ($booksellers[0]->{'invoiceprice'} eq 'AUD'){
194 if ($booksellers[0]->{'invoiceprice'} eq 'USD'){
199 if ($booksellers[0]->{'invoiceprice'} eq 'UKP'){
208 <TD>GST Registered</td>
209 <td><input type=radio name=gst value=1
212 if ($booksellers[0]->{'gstreg'}==1){
216 <input type=radio name=gst value=0";
217 if ($booksellers[0]->{'gstreg'}==0){
225 <TD>List Item Price Includes GST</td>
226 <td><input type=radio name=list_gst value=1
229 if ($booksellers[0]->{'listincgst'}==1){
233 <input type=radio name=list_gst value=0";
234 if ($booksellers[0]->{'listincgst'}==0){
242 <TD>Invoice Item Price Includes GST</td>
243 <td><input type=radio name=invoice_gst value=1
246 if ($booksellers[0]->{'invoiceincgst'}==1){
250 <input type=radio name=invoice_gst value=0";
251 if ($booksellers[0]->{'invoiceincgst'}==0){
260 <td><input type=text size=3 name=discount value=$booksellers[0]->{'discount'}> %
270 print endmenu('acquisitions');