2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Vendor [% bookselname %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
10 <script type="text/javascript">
12 function confirm_deletion() {
13 if (confirm(_("Confirm deletion of this vendor ?"))) {
14 window.location="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&op=delete";
18 if (f.company.value == "") {
19 alert(_("You must specify a name for this vendor."));
25 $(document).ready(function() {
26 [% IF (dateformat == 'metric') %]
27 dt_add_type_uk_date();
29 var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
31 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
32 [% IF (dateformat == 'metric') %]
33 { "aTargets": [ 2, 3 ], "sType": "uk_date" },
45 <body id="acq_supplier" class="acq">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'acquisitions-search.inc' %]
49 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › [% IF ( enter ) %][% IF ( booksellerid ) %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> › Update: [% name %][% ELSE %]Add vendor[% END %] [% ELSE %][% name %][% END %]</div>
51 <div id="doc3" class="yui-t2">
57 [% IF ( booksellerid ) %]
58 <h1>Update: [% name %]</h1>
63 [% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %]
65 <form action="updatesupplier.pl" name="updatesupplier" method="post">
67 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
68 <fieldset class="rows">
69 <legend>Company details</legend>
70 <ol><li><label for="company" class="required">Name: * </label>
71 <input type="text" size="40" id="company" name="company" value="[% name %]" /></li>
72 <li><label for="company_postal">Postal address: </label>
73 <textarea id="company_postal" name="company_postal" cols="40" rows="3">[% postal %]</textarea></li>
74 <li><label for="physical">Physical address: </label>
75 <textarea id="physical" name="physical" cols="40" rows="3">[% address1 %][% address2 %][% address3 %][% address4 %]</textarea></li>
76 <li><label for="company_phone">Phone: </label>
77 <input type="text" size="20" id="company_phone" name="company_phone" value="[% phone %]" /></li>
78 <li><label for="company_fax">Fax: </label>
79 <input type="text" size="20" id="company_fax" name="company_fax" value="[% fax %]" /></li>
80 <li><label for="website">Website: </label>
81 <input type="text" size="40" id="website" name="website" value="[% url %]" /></li>
82 <li><label for="accountnumber">Account number: </label>
83 <input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber %]" /></li></ol>
85 <fieldset class="rows">
86 <legend>Contact details</legend>
87 <ol> <li><label for="company_contact_name">Contact name: </label>
88 <input type="text" size="40" id="company_contact_name" name="company_contact_name" value="[% contact %]" /></li>
89 <li><label for="company_contact_position">Position: </label>
90 <input type="text" size="40" id="company_contact_position" name="company_contact_position" value="[% contpos %]" /></li>
91 <li><label for="contact_phone">Phone: </label>
92 <input type="text" size="20" id="contact_phone" name="contact_phone" value="[% contphone %]" /> </li>
93 <li><label for="contact_phone_2">Alternative phone: </label>
94 <input type="text" size="20" id="contact_phone_2" name="contact_phone_2" value="[% contaltphone %]" /></li>
95 <li><label for="contact_fax">Fax: </label>
96 <input type="text" size="20" id="contact_fax" name="contact_fax" value="[% contfax %]" /></li>
97 <li><label for="company_email">Email: </label>
98 <input type="text" size="40" id="company_email" name="company_email" value="[% contemail %]" /></li>
99 <li><label for="contact_notes">Notes: </label>
100 <textarea id="contact_notes" name="contact_notes" cols="40" rows="4">[% contnotes %]</textarea></li></ol>
104 <fieldset class="rows">
105 <legend>Ordering information</legend>
106 <ol class="radio"><li><label for="activestatus" class="radio">Vendor is:</label>
108 <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" checked="checked" />
109 <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" />
111 <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" />
112 <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" />
116 <li><label for="list_currency">List prices are: </label>
117 <select name="list_currency" id="list_currency">
118 [% FOREACH loop_currenc IN loop_currency %]
119 [% IF ( loop_currenc.listprice ) %]<option value="[% loop_currenc.currency %]" selected="1">[% loop_currenc.currency %]</option>
120 [% ELSE %]<option value="[% loop_currenc.currency %]">[% loop_currenc.currency %]</option>[% END %]
124 <li><label for="invoice_currency">Invoice prices are: </label>
125 <select name="invoice_currency" id="invoice_currency">
126 [% FOREACH loop_currenc IN loop_currency %]
127 [% IF ( loop_currenc.invoiceprice ) %]<option value="[% loop_currenc.currency %]" selected="1">[% loop_currenc.currency %]</option>
128 [% ELSE %]<option value="[% loop_currenc.currency %]">[% loop_currenc.currency %]</option>[% END %]
134 <li><label for="gstyes" class="radio">Tax number registered:</label>
136 <label for="gstyes">Yes</label> <input type="radio" name="gst" id="gstyes" value="1" checked="checked" />
137 <label for="gstno">No</label> <input type="radio" name="gst" id="gstno" value="0" />
139 <label for="gstyes">Yes</label> <input type="radio" name="gst" id="gstyes" value="1" />
140 <label for="gstno">No</label> <input type="radio" name="gst" id="gstno" value="0" checked="checked" />
143 <li><label for="list_gstyes" class="radio">List prices:</label>
144 [% IF ( listincgst ) %]
145 <label for="list_gstyes">Include tax</label> <input type="radio" id="list_gstyes" name="list_gst" value="1" checked="checked" />
146 <label for="list_gstno">Don't include tax</label> <input type="radio" id="list_gstno" name="list_gst" value="0" />
148 <label for="list_gstyes">Include tax</label> <input type="radio" id="list_gstyes" name="list_gst" value="1" />
149 <label for="list_gstno">Don't include tax</label> <input type="radio" id="list_gstno" name="list_gst" value="0" checked="checked" />
152 <li><label for="invoice_gstyes" class="radio">Invoice prices:</label>
153 [% IF ( invoiceincgst ) %]
154 <label for="invoice_gstyes">Include tax</label> <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" checked="checked" />
155 <label for="invoice_gstno">Don't include tax</label> <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" />
157 <label for="invoice_gstyes">Include tax</label> <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" />
158 <label for="invoice_gstno">Don't include tax</label> <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" checked="checked" />
164 <label for="gst">Tax rate: </label>
165 <select name="gstrate" id="gstrate">
166 [% FOREACH gst IN gst_values %]
167 [% IF ( gstrate == gst.option ) %]
168 <option value="[% gst.option %]" selected="selected">[% gst.option * 100 | format ("%.1f") %] %</option>
170 <option value="[% gst.option %]">[% gst.option * 100 | format ("%.1f") %] %</option>
177 <input type="hidden" name="gstrate" value="0" />
180 <li><label for="discount">Discount: </label>
181 <input type="text" size="6" id="discount" name="discount" value="[% discount | format ("%.1f") %]" />%</li>
183 <label for="deliverytime">Delivery time: </label>
184 <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime %]" /> days
186 <li><label for="notes">Notes: </label>
187 <textarea cols="40" rows="4" id="notes" name="notes" >[% notes %]</textarea></li></ol>
189 <fieldset class="action"><input type="button" value="Save" onclick="check(this.form);" /> [% IF ( booksellerid ) %]
190 <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
191 [% END %]Cancel</a></fieldset>
197 <div id="supplier-company-details" class="yui-u first">
198 <h2>Vendor details</h2>
199 <p><span class="label">Company name: </span>[% name %]</p>
200 <p><span class="label">Postal address: </span>[% postal %]</p>
201 <p><span class="label">Physical address: </span>[% address1 %][% address2 %][% address3 %][% address4 %]</p>
202 <p><span class="label">Phone: </span>[% phone %]</p>
203 <p><span class="label">Fax: </span>[% fax %]</p>
205 <p><span class="label">Website: </span><a href="[% url %]">[% url %]</a></p>
207 [% IF ( accountnumber ) %]
208 <p><span class="label">Account number: </span>[% accountnumber %]</p>
211 <div id="supplier-contact-details" class="yui-u">
212 <h2>Contact details</h2>
213 <p><span class="label">Contact name: </span>[% contact %]</p>
214 <p><span class="label">Position: </span>[% contpos %]</p>
215 <p><span class="label">Phone: </span>[% contphone %]</p>
216 <p><span class="label">Alternative phone: </span>[% contaltphone %]</p>
217 <p><span class="label">Fax: </span>[% contfax %]</p>
218 [% IF ( contemail ) %]
219 <p><span class="label">Email: </span><a href="mailto:[% contemail %]">[% contemail %]</a></p>
221 [% IF ( contnotes ) %]
222 <p><span class="label">Notes: </span>[% contnotes %]</p>
226 <div id="supplier-ordering-information" class="yui-g">
227 <h3>Ordering information</h3>
228 <p><strong>Vendor is: </strong>
234 <p><strong>List prices are: </strong>[% listprice %]</p>
235 <p><strong>Invoice prices are: </strong>[% invoiceprice %]</p>
236 [% IF ( gstrate ) %]<p><strong>Tax number registered: </strong>
237 [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
238 <p><strong>List item price includes tax: </strong>
239 [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
240 <p><strong>Invoice item price includes tax: </strong>
241 [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
242 <p><strong>Discount: </strong>
243 [% discount | format("%.1f") %] %</p>
244 <p><strong>Tax rate: </strong>
245 [% 0 + gstrate * 100 | format("%.1f") %] %</p>
246 [% IF deliverytime.defined %]
247 <p><strong>Delivery time: </strong>
248 [% deliverytime %] days</p>
250 [% IF ( notes ) %]<p><strong>Notes: </strong>
251 [% notes %]</p>[% END %]
253 [% IF ( contracts ) %]
254 <div id="supplier-contracts" class="yui-g">
256 <table id="contractst">
259 <th scope="col">Name</th>
260 <th scope="col">Description</th>
261 <th scope="col">Start date</th>
262 <th scope="col">End date</th>
263 <th scope="col"> </th>
264 <th scope="col"> </th>
268 [% FOREACH contract IN contracts %]
269 [% IF ( loop.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
271 <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">[% contract.contractname %]</a>
273 <td>[% contract.contractdescription %]</td>
274 <td>[% contract.contractstartdate | $KohaDates %]</td>
275 <td>[% contract.contractenddate | $KohaDates %]</td>
276 <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">Edit</a></td>
277 <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">Delete</a></td>
290 [% INCLUDE 'vendor-menu.inc' %]
293 [% INCLUDE 'intranet-bottom.inc' %]