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 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
10 function confirm_deletion() {
11 if (confirm(_("Confirm deletion of this vendor ?"))) {
12 window.location="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&op=delete";
16 $(document).ready(function() {
17 var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
19 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
20 { "sType": "title-string", "aTargets" : [ "title-string" ] }
28 <body id="acq_supplier" class="acq">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'acquisitions-search.inc' %]
32 <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>
34 <div id="doc3" class="yui-t2">
40 [% IF ( booksellerid ) %]
41 <h1>Update: [% name %]</h1>
46 [% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %]
48 <form action="updatesupplier.pl" name="updatesupplier" class="validated" method="post">
50 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
51 <fieldset class="rows">
52 <legend>Company details</legend>
53 <ol><li><label for="company" class="required">Name:</label>
54 <input type="text" size="40" id="company" name="company" value="[% name %]" required="required" class="required" /><span class="required">Required</span></li>
55 <li><label for="company_postal">Postal address: </label>
56 <textarea id="company_postal" name="company_postal" cols="40" rows="3">[% postal %]</textarea></li>
57 <li><label for="physical">Physical address: </label>
58 <textarea id="physical" name="physical" cols="40" rows="3">[% address1 %][% address2 %][% address3 %][% address4 %]</textarea></li>
59 <li><label for="company_phone">Phone: </label>
60 <input type="text" size="20" id="company_phone" name="company_phone" value="[% phone %]" /></li>
61 <li><label for="company_fax">Fax: </label>
62 <input type="text" size="20" id="company_fax" name="company_fax" value="[% fax %]" /></li>
63 <li><label for="website">Website: </label>
64 <input type="text" size="40" id="website" name="website" value="[% url %]" /></li>
65 <li><label for="accountnumber">Account number: </label>
66 <input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber %]" /></li></ol>
68 <fieldset class="rows">
69 <legend>Contact details</legend>
70 <ol> <li><label for="company_contact_name">Contact name: </label>
71 <input type="text" size="40" id="company_contact_name" name="company_contact_name" value="[% contact %]" /></li>
72 <li><label for="company_contact_position">Position: </label>
73 <input type="text" size="40" id="company_contact_position" name="company_contact_position" value="[% contpos %]" /></li>
74 <li><label for="contact_phone">Phone: </label>
75 <input type="text" size="20" id="contact_phone" name="contact_phone" value="[% contphone %]" /> </li>
76 <li><label for="contact_phone_2">Alternative phone: </label>
77 <input type="text" size="20" id="contact_phone_2" name="contact_phone_2" value="[% contaltphone %]" /></li>
78 <li><label for="contact_fax">Fax: </label>
79 <input type="text" size="20" id="contact_fax" name="contact_fax" value="[% contfax %]" /></li>
80 <li><label for="company_email">Email: </label>
81 <input type="text" size="40" id="company_email" name="company_email" value="[% contemail %]" /></li>
82 <li><label for="contact_notes">Notes: </label>
83 <textarea id="contact_notes" name="contact_notes" cols="40" rows="4">[% contnotes %]</textarea></li></ol>
87 <fieldset class="rows">
88 <legend>Ordering information</legend>
89 <ol class="radio"><li><label for="activestatus" class="radio">Vendor is:</label>
91 <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" checked="checked" />
92 <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" />
94 <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" />
95 <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" />
99 <li><label for="list_currency">List prices are: </label>
100 <select name="list_currency" id="list_currency">
101 [% FOREACH loop_currenc IN loop_currency %]
102 [% IF ( loop_currenc.listprice ) %]<option value="[% loop_currenc.currency %]" selected="selected">[% loop_currenc.currency %]</option>
103 [% ELSE %]<option value="[% loop_currenc.currency %]">[% loop_currenc.currency %]</option>[% END %]
107 <li><label for="invoice_currency">Invoice prices are: </label>
108 <select name="invoice_currency" id="invoice_currency">
109 [% FOREACH loop_currenc IN loop_currency %]
110 [% IF ( loop_currenc.invoiceprice ) %]<option value="[% loop_currenc.currency %]" selected="selected">[% loop_currenc.currency %]</option>
111 [% ELSE %]<option value="[% loop_currenc.currency %]">[% loop_currenc.currency %]</option>[% END %]
117 <li><label for="gstyes" class="radio">Tax number registered:</label>
119 <label for="gstyes">Yes</label> <input type="radio" name="gst" id="gstyes" value="1" checked="checked" />
120 <label for="gstno">No</label> <input type="radio" name="gst" id="gstno" value="0" />
122 <label for="gstyes">Yes</label> <input type="radio" name="gst" id="gstyes" value="1" />
123 <label for="gstno">No</label> <input type="radio" name="gst" id="gstno" value="0" checked="checked" />
126 <li><label for="list_gstyes" class="radio">List prices:</label>
127 [% IF ( listincgst ) %]
128 <label for="list_gstyes">Include tax</label> <input type="radio" id="list_gstyes" name="list_gst" value="1" checked="checked" />
129 <label for="list_gstno">Don't include tax</label> <input type="radio" id="list_gstno" name="list_gst" value="0" />
131 <label for="list_gstyes">Include tax</label> <input type="radio" id="list_gstyes" name="list_gst" value="1" />
132 <label for="list_gstno">Don't include tax</label> <input type="radio" id="list_gstno" name="list_gst" value="0" checked="checked" />
135 <li><label for="invoice_gstyes" class="radio">Invoice prices:</label>
136 [% IF ( invoiceincgst ) %]
137 <label for="invoice_gstyes">Include tax</label> <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" checked="checked" />
138 <label for="invoice_gstno">Don't include tax</label> <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" />
140 <label for="invoice_gstyes">Include tax</label> <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" />
141 <label for="invoice_gstno">Don't include tax</label> <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" checked="checked" />
147 <label for="gstrate">Tax rate: </label>
148 <select name="gstrate" id="gstrate">
149 [% FOREACH gst IN gst_values %]
150 [% IF ( gstrate == gst.option ) %]
151 <option value="[% gst.option %]" selected="selected">[% gst.option * 100 | format ("%.1f") %] %</option>
153 <option value="[% gst.option %]">[% gst.option * 100 | format ("%.1f") %] %</option>
160 <input type="hidden" name="gstrate" value="0" />
163 <li><label for="discount">Discount: </label>
164 <input type="text" size="6" id="discount" name="discount" value="[% discount | format ("%.1f") %]" />%</li>
166 <label for="deliverytime">Delivery time: </label>
167 <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime %]" /> days
169 <li><label for="notes">Notes: </label>
170 <textarea cols="40" rows="4" id="notes" name="notes" >[% notes %]</textarea></li></ol>
172 <fieldset class="action"><input type="submit" value="Save" /> [% IF ( booksellerid ) %]
173 <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
174 [% END %]Cancel</a></fieldset>
180 <div id="supplier-company-details" class="yui-u first">
181 <h2>Vendor details</h2>
182 <p><span class="label">Company name: </span>[% name %]</p>
183 <p><span class="label">Postal address: </span>[% postal %]</p>
184 <p><span class="label">Physical address: </span>[% address1 %][% address2 %][% address3 %][% address4 %]</p>
185 <p><span class="label">Phone: </span>[% phone %]</p>
186 <p><span class="label">Fax: </span>[% fax %]</p>
188 <p><span class="label">Website: </span><a href="[% url %]" target="_blank">[% url %]</a></p>
190 [% IF ( accountnumber ) %]
191 <p><span class="label">Account number: </span>[% accountnumber %]</p>
194 <div id="supplier-contact-details" class="yui-u">
195 <h2>Contact details</h2>
196 <p><span class="label">Contact name: </span>[% contact %]</p>
197 <p><span class="label">Position: </span>[% contpos %]</p>
198 <p><span class="label">Phone: </span>[% contphone %]</p>
199 <p><span class="label">Alternative phone: </span>[% contaltphone %]</p>
200 <p><span class="label">Fax: </span>[% contfax %]</p>
201 [% IF ( contemail ) %]
202 <p><span class="label">Email: </span><a href="mailto:[% contemail %]">[% contemail %]</a></p>
204 [% IF ( contnotes ) %]
205 <p><span class="label">Notes: </span>[% contnotes %]</p>
209 <div id="supplier-ordering-information" class="yui-g">
210 <h3>Ordering information</h3>
211 <p><strong>Vendor is: </strong>
217 <p><strong>List prices are: </strong>[% listprice %]</p>
218 <p><strong>Invoice prices are: </strong>[% invoiceprice %]</p>
219 [% IF ( gstrate ) %]<p><strong>Tax number registered: </strong>
220 [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
221 <p><strong>List item price includes tax: </strong>
222 [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
223 <p><strong>Invoice item price includes tax: </strong>
224 [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
225 <p><strong>Discount: </strong>
226 [% discount | format("%.1f") %] %</p>
227 <p><strong>Tax rate: </strong>
228 [% 0 + gstrate * 100 | format("%.1f") %] %</p>
229 [% IF deliverytime.defined %]
230 <p><strong>Delivery time: </strong>
231 [% deliverytime %] days</p>
233 [% IF ( notes ) %]<p><strong>Notes: </strong>
234 [% notes %]</p>[% END %]
236 [% IF ( contracts ) %]
237 <div id="supplier-contracts" class="yui-g">
239 <table id="contractst">
242 <th scope="col">Name</th>
243 <th scope="col">Description</th>
244 <th scope="col" class="title-string">Start date</th>
245 <th scope="col" class="title-string">End date</th>
246 <th scope="col"> </th>
247 <th scope="col"> </th>
251 [% FOREACH contract IN contracts %]
252 [% IF ( loop.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
254 <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">[% contract.contractname %]</a>
256 <td>[% contract.contractdescription %]</td>
257 <td><span title="[% contract.contractstartdate %]">[% contract.contractstartdate | $KohaDates %]</span></td>
258 <td><span title="[% contract.contractenddate %]">[% contract.contractenddate | $KohaDates %]</span></td>
259 <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">Edit</a></td>
260 <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">Delete</a></td>
273 [% INCLUDE 'vendor-menu.inc' %]
276 [% INCLUDE 'intranet-bottom.inc' %]