|
Lines 16-26
Link Here
|
| 16 |
<input type="text" size="40" id="contact_email[% contact.id %]" name="contact_email" value="[% contact.email %]" /></li> |
16 |
<input type="text" size="40" id="contact_email[% contact.id %]" name="contact_email" value="[% contact.email %]" /></li> |
| 17 |
<li><label for="contact_notes[% contact.id %]">Notes: </label> |
17 |
<li><label for="contact_notes[% contact.id %]">Notes: </label> |
| 18 |
<textarea id="contact_notes[% contact.id %]" name="contact_notes" cols="40" rows="4">[% contnotes %]</textarea></li> |
18 |
<textarea id="contact_notes[% contact.id %]" name="contact_notes" cols="40" rows="4">[% contnotes %]</textarea></li> |
| 19 |
[% IF contact.id %]<li><button class="btn" class="delete-contact"><i class="icon-remove"></i>Delete contact</li>[% END %] |
19 |
[% IF contact.id %]<li><button class="btn" class="delete-contact"><i class="icon-remove"></i> Delete contact</li>[% END %] |
| 20 |
</ol> |
20 |
</ol> |
| 21 |
[% END %] |
21 |
[% END %] |
|
|
22 |
|
| 22 |
[% BLOCK show_contact %] |
23 |
[% BLOCK show_contact %] |
| 23 |
<p><span class="label">Contact name: </span>[% contact.name %]</p> |
24 |
<h3>[% contact.name %]</h3> |
| 24 |
<p><span class="label">Position: </span>[% contact.position %]</p> |
25 |
<p><span class="label">Position: </span>[% contact.position %]</p> |
| 25 |
<p><span class="label">Phone: </span>[% contact.phone %]</p> |
26 |
<p><span class="label">Phone: </span>[% contact.phone %]</p> |
| 26 |
<p><span class="label">Alternative phone: </span>[% contact.altphone %]</p> |
27 |
<p><span class="label">Alternative phone: </span>[% contact.altphone %]</p> |
|
Lines 32-37
Link Here
|
| 32 |
<p><span class="label">Notes: </span>[% contact.notes %]</p> |
33 |
<p><span class="label">Notes: </span>[% contact.notes %]</p> |
| 33 |
[% END %] |
34 |
[% END %] |
| 34 |
[% END %] |
35 |
[% END %] |
|
|
36 |
|
| 35 |
[% INCLUDE 'doc-head-open.inc' %] |
37 |
[% INCLUDE 'doc-head-open.inc' %] |
| 36 |
<title>Koha › Vendor [% bookselname %]</title> |
38 |
<title>Koha › Vendor [% bookselname %]</title> |
| 37 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
39 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
|
Lines 147-153
function delete_contact() {
Link Here
|
| 147 |
[% INCLUDE edit_contact %] |
149 |
[% INCLUDE edit_contact %] |
| 148 |
</fieldset> |
150 |
</fieldset> |
| 149 |
[% END %] |
151 |
[% END %] |
| 150 |
<button id="add-contact" class="btn"><i class="icon-plus"></i>Add contact</button> |
152 |
<button id="add-contact" class="btn"><i class="icon-plus"></i> Add another contact</button> |
| 151 |
</fieldset> |
153 |
</fieldset> |
| 152 |
</div> |
154 |
</div> |
| 153 |
<div class="yui-g"> |
155 |
<div class="yui-g"> |
|
Lines 257-297
function delete_contact() {
Link Here
|
| 257 |
[% IF ( accountnumber ) %] |
259 |
[% IF ( accountnumber ) %] |
| 258 |
<p><span class="label">Account number: </span>[% accountnumber %]</p> |
260 |
<p><span class="label">Account number: </span>[% accountnumber %]</p> |
| 259 |
[% END %] |
261 |
[% END %] |
|
|
262 |
|
| 263 |
<div id="supplier-ordering-information"> |
| 264 |
<h2>Ordering information</h2> |
| 265 |
<p><strong>Vendor is: </strong> |
| 266 |
[% IF ( active ) %] |
| 267 |
Active |
| 268 |
[% ELSE %] |
| 269 |
Inactive |
| 270 |
[% END %]</p> |
| 271 |
<p><strong>List prices are: </strong>[% listprice %]</p> |
| 272 |
<p><strong>Invoice prices are: </strong>[% invoiceprice %]</p> |
| 273 |
[% IF ( gstrate ) %]<p><strong>Tax number registered: </strong> |
| 274 |
[% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p> |
| 275 |
<p><strong>List item price includes tax: </strong> |
| 276 |
[% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p> |
| 277 |
<p><strong>Invoice item price includes tax: </strong> |
| 278 |
[% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %] |
| 279 |
<p><strong>Discount: </strong> |
| 280 |
[% discount | format("%.1f") %] %</p> |
| 281 |
<p><strong>Tax rate: </strong> |
| 282 |
[% 0 + gstrate * 100 | format("%.1f") %] %</p> |
| 283 |
[% IF deliverytime.defined %] |
| 284 |
<p><strong>Delivery time: </strong> |
| 285 |
[% deliverytime %] days</p> |
| 286 |
[% END %] |
| 287 |
[% IF ( notes ) %]<p><strong>Notes: </strong> |
| 288 |
[% notes %]</p>[% END %] |
| 260 |
</div> |
289 |
</div> |
| 261 |
[% FOREACH contact IN contacts %] |
290 |
</div> |
| 262 |
<div class="supplier-contact-details yui-u"> |
291 |
|
| 263 |
<h2>Contact details</h2> |
292 |
<div class="supplier-contact-details yui-u"> |
|
|
293 |
<h2>Contact</h2> |
| 294 |
[% FOREACH contact IN contacts %] |
| 264 |
[% INCLUDE show_contact %] |
295 |
[% INCLUDE show_contact %] |
| 265 |
</div> |
296 |
[% END %] |
| 266 |
[% END %] |
297 |
</div> |
| 267 |
</div> |
298 |
|
| 268 |
<div id="supplier-ordering-information" class="yui-g"> |
|
|
| 269 |
<h3>Ordering information</h3> |
| 270 |
<p><strong>Vendor is: </strong> |
| 271 |
[% IF ( active ) %] |
| 272 |
Active |
| 273 |
[% ELSE %] |
| 274 |
Inactive |
| 275 |
[% END %]</p> |
| 276 |
<p><strong>List prices are: </strong>[% listprice %]</p> |
| 277 |
<p><strong>Invoice prices are: </strong>[% invoiceprice %]</p> |
| 278 |
[% IF ( gstrate ) %]<p><strong>Tax number registered: </strong> |
| 279 |
[% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p> |
| 280 |
<p><strong>List item price includes tax: </strong> |
| 281 |
[% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p> |
| 282 |
<p><strong>Invoice item price includes tax: </strong> |
| 283 |
[% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %] |
| 284 |
<p><strong>Discount: </strong> |
| 285 |
[% discount | format("%.1f") %] %</p> |
| 286 |
<p><strong>Tax rate: </strong> |
| 287 |
[% 0 + gstrate * 100 | format("%.1f") %] %</p> |
| 288 |
[% IF deliverytime.defined %] |
| 289 |
<p><strong>Delivery time: </strong> |
| 290 |
[% deliverytime %] days</p> |
| 291 |
[% END %] |
| 292 |
[% IF ( notes ) %]<p><strong>Notes: </strong> |
| 293 |
[% notes %]</p>[% END %] |
| 294 |
</div> |
299 |
</div> |
|
|
300 |
|
| 295 |
[% IF ( contracts ) %] |
301 |
[% IF ( contracts ) %] |
| 296 |
<div id="supplier-contracts" class="yui-g"> |
302 |
<div id="supplier-contracts" class="yui-g"> |
| 297 |
<h2>Contract(s)</h2> |
303 |
<h2>Contract(s)</h2> |
| 298 |
- |
|
|