3 #script to show display basket of orders
4 #written by chris@katipo.co.nz 24/2/2000
7 # Copyright 2000-2002 Katipo Communications
9 # This file is part of Koha.
11 # Koha is free software; you can redistribute it and/or modify it under the
12 # terms of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
16 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
17 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
18 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License along with
21 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
22 # Suite 330, Boston, MA 02111-1307 USA
31 print $input->header();
32 my $id=$input->param('id');
33 my ($count,@booksellers)=bookseller($id);
36 print startmenu('acquisitions');
39 <form action=updatesupplier.pl method=post>
41 <input type=hidden name=id value=$id>
42 <FONT SIZE=6><em>Update: $booksellers[0]->{'name'}</em></FONT>
45 <TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left width="40%">
46 <tr valign=top bgcolor=#99cc33><td background="/images/background-mem.gif" colspan=2><B>COMPANY DETAILS</B></td></tr>
48 <TD><b>Company Name</b></td>
49 <td><input type=text size=20 name=company value="$booksellers[0]->{'name'}">
53 <TD>Postal Address</td>
54 <td><textarea name=company_postal cols=20 rows=3>$booksellers[0]->{'postal'}
58 <TD>Physical Address</td>
59 <td><textarea name=physical cols=20 rows=4>$booksellers[0]->{'address1'}
60 $booksellers[0]->{'address2'}
61 $booksellers[0]->{'address3'}
62 $booksellers[0]->{'address4'}
68 <td><input type=text size=20 name=company_phone value="$booksellers[0]->{'phone'}">
73 <td><input type=text size=20 name=company_fax value="$booksellers[0]->{'fax'}">
78 <td><input type=text size=20 name=website value="$booksellers[0]->{'url'}">
81 <tr valign=top bgcolor=#99cc33><td background="/images/background-mem.gif" colspan=2><B>CONTACT DETAILS</B></td></tr>
84 <td><input type=text size=20 name=company_contact_name value="$booksellers[0]->{'contact'}">
89 <td><input type=text size=20 name=company_contact_position value="$booksellers[0]->{'contpos'}">
94 <td><input type=text size=20 name=contact_phone value="$booksellers[0]->{'contphone'}">
98 <TD>Alternative Phone</td>
99 <td><input type=text size=20 name=contact_phone_2 value="$booksellers[0]->{'contaltphone'}">
104 <td><input type=text size=20 name=contact_fax value="$booksellers[0]->{'contfax'}">
109 <td><input type=text size=20 name=company_email value="$booksellers[0]->{'contemail'}">
114 <td><textarea name=notes cols=20 rows=4>$booksellers[0]->{'contnotes'}</textarea>
117 <tr valign=right><td><input type=image name=submit src=/images/save-changes.gif border=0 width=187 height=42 align=right></td></tr>
119 <img src="/images/holder.gif" width=32 height=250 align=left>
121 <table border=1 cellspacing=0 cellpadding=5 width="40%">
122 <tr valign=top bgcolor=#99cc33><td background="/images/background-mem.gif" colspan=2><B>CURRENT STATUS</B></td></tr>
125 <td><input type=radio name=status value=1
128 if ($booksellers[0]->{'active'}==1){
132 <input type=radio name=status value=0";
133 if ($booksellers[0]->{'active'}==0){
140 <tr valign=top bgcolor=#99cc33><td background="/images/background-mem.gif" colspan=2><B>ORDERING INFORMATION</B></td></tr>
142 <TD>Publishers and Imprints</td>
143 <td><textarea name=publishers_imprints cols=20 rows=4>$booksellers[0]->{'specialty'}</textarea>
147 <TD>List Prices are</td>
148 <td><select name=list_currency size=1>
152 if ($booksellers[0]->{'listprice'} eq 'NZD'){
157 if ($booksellers[0]->{'listprice'} eq 'AUD'){
162 if ($booksellers[0]->{'listprice'} eq 'USD'){
167 if ($booksellers[0]->{'listprice'} eq 'UKP'){
177 <TD>Invoice Prices are</td>
178 <td><select name=invoice_currency size=1>
182 if ($booksellers[0]->{'invoiceprice'} eq 'NZD'){
187 if ($booksellers[0]->{'invoiceprice'} eq 'AUD'){
192 if ($booksellers[0]->{'invoiceprice'} eq 'USD'){
197 if ($booksellers[0]->{'invoiceprice'} eq 'UKP'){
206 <TD>GST Registered</td>
207 <td><input type=radio name=gst value=1
210 if ($booksellers[0]->{'gstreg'}==1){
214 <input type=radio name=gst value=0";
215 if ($booksellers[0]->{'gstreg'}==0){
223 <TD>List Item Price Includes GST</td>
224 <td><input type=radio name=list_gst value=1
227 if ($booksellers[0]->{'listincgst'}==1){
231 <input type=radio name=list_gst value=0";
232 if ($booksellers[0]->{'listincgst'}==0){
240 <TD>Invoice Item Price Includes GST</td>
241 <td><input type=radio name=invoice_gst value=1
244 if ($booksellers[0]->{'invoiceincgst'}==1){
248 <input type=radio name=invoice_gst value=0";
249 if ($booksellers[0]->{'invoiceincgst'}==0){
258 <td><input type=text size=3 name=discount value=$booksellers[0]->{'discount'}> %
268 print endmenu('acquisitions');