322 lines
18 KiB
Cheetah
322 lines
18 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Acquisitions › <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS --><!-- TMPL_IF NAME="delete_confirm" -->Delete <!-- /TMPL_IF -->Basket <!-- TMPL_VAR NAME="basketname" --> (<!-- TMPL_VAR NAME="basketno" -->) for <!-- TMPL_VAR NAME="name" --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- TMPL_UNLESS name="closedate" -->
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
|
<script type="text/JavaScript">
|
|
//<![CDATA[
|
|
$(document).ready(function() {
|
|
$("#orders").tablesorter({
|
|
headers: {
|
|
9: { sorter: false },
|
|
10: { sorter: false }
|
|
}
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function confirm_close() {
|
|
var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
|
|
if (is_confirmed) {
|
|
window.location = "<!-- TMPL_VAR name="script_name" -->?op=close&basketno=<!-- TMPL_VAR NAME="basketno" -->";
|
|
}
|
|
}
|
|
//]]>
|
|
</script>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_UNLESS name="grouped" -->
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function confirm_reopen() {
|
|
var is_confirmed = confirm(_('Are you sure you want to reopen this basket?'));
|
|
if (is_confirmed) {
|
|
window.location = "<!-- TMPL_VAR name="script_name" -->?op=reopen&basketno=<!-- TMPL_VAR name="basketno" -->";
|
|
}
|
|
}
|
|
//]]>
|
|
</script>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_UNLESS -->
|
|
<style type="text/css">
|
|
.sortmsg {font-size: 80%;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
|
|
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a> › <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS --><!-- TMPL_IF NAME="delete_confirm" -->Delete <!-- /TMPL_IF -->Basket <!-- TMPL_VAR NAME="basketname" --> (<!-- TMPL_VAR NAME="basketno" -->) for <!-- TMPL_VAR NAME="name" --></div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<!-- TMPL_UNLESS name="confirm_close" -->
|
|
<!-- TMPL_UNLESS name="selectbasketg" -->
|
|
<!-- TMPL_UNLESS name="closedate" -->
|
|
<div id="toolbar">
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
// prepare DOM for YUI Toolbar
|
|
$(document).ready(function() {
|
|
yuiToolbar();
|
|
});
|
|
// YUI Toolbar Functions
|
|
function yuiToolbar() {
|
|
<!-- TMPL_IF name="unclosable" -->
|
|
new YAHOO.widget.Button("uncertpricesbutton");
|
|
new YAHOO.widget.Button("closebutton", {disabled:true});
|
|
<!-- TMPL_ELSE -->
|
|
new YAHOO.widget.Button("closebutton");
|
|
<!-- /TMPL_IF -->
|
|
new YAHOO.widget.Button("basketheadbutton");
|
|
new YAHOO.widget.Button("delbasketbutton");
|
|
}
|
|
//]]>
|
|
</script>
|
|
<ul id="toolbar-list" class="toolbar">
|
|
<li><a href="basketheader.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->&op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
|
|
<li><a href="<!-- TMPL_VAR NAME="script_name" -->?op=del_basket&basketno=<!-- TMPL_VAR NAME="basketno" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" class="button" id="delbasketbutton">Delete this basket</a></li>
|
|
<!-- TMPL_IF name="unclosable" -->
|
|
<li><button onclick="confirm_close()" class="yui-button-disabled" id="closebutton" type="push" disabled="true" title="You can not close this basket" >Can not close basket</a></li>
|
|
<li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
|
|
<!-- TMPL_ELSE -->
|
|
<li><a href="<!-- TMPL_VAR name="script_name" -->?op=close&basketno=<!-- TMPL_VAR name="basketno" -->&booksellerid=<!-- TMPL_VAR name="booksellerid" -->" class="button" id="closebutton">Close this basket</a></li>
|
|
<!-- /TMPL_IF -->
|
|
</ul>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_UNLESS name="grouped" -->
|
|
<div id="toolbar">
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
// prepare DOM for YUI Toolbar
|
|
$(document).ready(function() {
|
|
yuiToolbar();
|
|
});
|
|
// YUI Toolbar Functions
|
|
function yuiToolbar() {
|
|
new YAHOO.widget.Button("reopenbutton");
|
|
}
|
|
//]]>
|
|
</script>
|
|
<ul id="toolbar-list" class="toolbar">
|
|
<li><a href="javascript:confirm_reopen();" class="button" id="reopenbutton">Reopen this basket</a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_UNLESS -->
|
|
|
|
<!-- TMPL_IF NAME="NO_BOOKSELLER" -->
|
|
<h2>Supplier Not Found</h2>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF NAME="delete_confirmed" -->
|
|
<h3>Basket deleted</h3>
|
|
<META HTTP-EQUIV=Refresh CONTENT="0; URL=booksellers.pl">
|
|
<!-- TMPL_ELSE -->
|
|
<h1><!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS --><!-- TMPL_IF NAME="delete_confirm" -->Delete <!-- /TMPL_IF -->Basket <!-- TMPL_VAR NAME="basketname" --> (<!-- TMPL_VAR NAME="basketno" -->) for <a href="supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a></h1>
|
|
<!-- TMPL_IF NAME="delete_confirm" -->
|
|
<h2>
|
|
<span class="yui-button yui-link-button">
|
|
<em class="first-child">
|
|
<a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&basketno=<!-- TMPL_VAR NAME="basketno" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" class="yui-link-button">Yes, delete this basket!</a>
|
|
</em>
|
|
</span>
|
|
<span class="yui-button yui-link-button">
|
|
<em class="first-child">
|
|
<a href="<!-- TMPL_VAR name="script_name" -->?basketno=<!-- TMPL_VAR name="basketno" -->" class="yui-link-button">Cancel</a>
|
|
</em>
|
|
</span>
|
|
</h2>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="basketno" --><div id="acqui_basket_summary">
|
|
<h2>Basket Details</h2>
|
|
<!-- TMPL_IF NAME="basketnote" --><p>Internal note: <!-- TMPL_VAR NAME="basketnote" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="basketbooksellernote" --><p>Bookseller note: <!-- TMPL_VAR NAME="basketbooksellernote" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="basketcontractno" -->
|
|
<p>Contract number: <!-- TMPL_VAR NAME="basketcontractno" --></p>
|
|
<p>Contract name: <a href="../admin/aqcontract.pl?op=add_form&contractnumber=<!-- TMPL_VAR NAME="basketcontractno" -->"><!-- TMPL_VAR NAME="basketcontractname" --></a></p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="authorisedbyname" --><p>Managed by: <!-- TMPL_VAR NAME="authorisedbyname" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="creationdate" --><p>Open on: <!-- TMPL_VAR NAME="creationdate" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="booksellerid" --><p>For vendor ID: <!-- TMPL_VAR NAME="booksellerid" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="booksellerinvoicenumber" --><p>Invoice number: <!-- TMPL_VAR NAME="booksellerinvoicenumber" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="closedate" -->
|
|
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
|
|
<p>Closed On: <!-- TMPL_VAR name="closedate" --></p>
|
|
<!-- TMPL_IF name="basketgroups" -->
|
|
<p> basketgroup: <select id="basketgroupid" name="basketgroupid">
|
|
<!-- TMPL_LOOP name="basketgroups" -->
|
|
<!-- TMPL_IF name="default" -->
|
|
<option value="<!-- TMPL_VAR name="id" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
|
|
<!-- TMPL_ELSE -->
|
|
<option value="<!-- TMPL_VAR name="id" -->"><!-- TMPL_VAR name="name" --></option>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<input type="hidden" id="basketno" value="<!-- TMPL_VAR name="basketno" -->" name="basketno" />
|
|
<input type="hidden" value="mod_basket" name="op" />
|
|
<input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
|
|
<input type="submit" value="Change basketgroup" />
|
|
</p>
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<p>Number of orders: <!-- TMPL_VAR name="count" --></p>
|
|
</div><!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_UNLESS name="delete_confirm" -->
|
|
<div id="acqui_basket_content">
|
|
<h2>Order Details</h2>
|
|
<!-- TMPL_IF name="books_loop" -->
|
|
<table id="orders">
|
|
<thead>
|
|
<tr>
|
|
<th>Order</th>
|
|
<th>Title</th>
|
|
<th>ISBN</th>
|
|
<th>Publisher</th>
|
|
<th>RRP</th>
|
|
<th>Est.</th>
|
|
<th>Qty.</th>
|
|
<th>Total</th>
|
|
<th>Budget</th>
|
|
<!-- TMPL_IF name="active" -->
|
|
<!-- TMPL_UNLESS name="closedate" -->
|
|
<th>Modify</th>
|
|
<th>Delete</th>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_IF -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- TMPL_LOOP NAME="books_loop" -->
|
|
<!-- TMPL_IF NAME="order_received" --><tr class="disabled"><!-- TMPL_ELSE --><!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF --><!-- /TMPL_IF -->
|
|
<td><!-- TMPL_VAR NAME="ordernumber" -->
|
|
<!-- TMPL_IF NAME="order_received" --> (rcvd)<!-- /TMPL_IF --></td>
|
|
<td>
|
|
<p>
|
|
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></p>
|
|
<p><!-- TMPL_VAR NAME="author" -->
|
|
<!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
|
|
</p>
|
|
</td>
|
|
<td><!-- TMPL_IF name="isbn"--><!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF --></td>
|
|
<td><!-- TMPL_VAR NAME="publishercode" --></td>
|
|
<td class="number"><!-- TMPL_VAR NAME="rrp" --></td>
|
|
<td class="number"><!-- TMPL_VAR NAME="ecost" --></td>
|
|
<td class="number"><!-- TMPL_VAR NAME="quantity" --></td>
|
|
<td class="number"><!-- TMPL_VAR NAME="line_total" --></td>
|
|
<td><!-- TMPL_VAR NAME="budget_name" --></td>
|
|
<!-- TMPL_IF name="active" -->
|
|
<!-- TMPL_UNLESS name="closedate" -->
|
|
<td>
|
|
<a href="neworderempty.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">Modify</a>
|
|
</td>
|
|
<td>
|
|
<a href="addorder.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->&quantity=0&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Delete</a>
|
|
</td>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_IF -->
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</tbody>
|
|
<tr>
|
|
<td colspan="2" rowspan="3">
|
|
<input type="hidden" name="number" value="<!-- TMPL_VAR NAME="count" -->" />
|
|
<input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
|
|
</td>
|
|
<th colspan="2">Total GST Exc.</th>
|
|
<th><!-- TMPL_VAR NAME="total_rrp_gste" --></th>
|
|
<th> </th>
|
|
<th><!-- TMPL_VAR name="qty_total" --></th>
|
|
<th><!-- TMPL_VAR NAME="total_est_gste" --></th>
|
|
<!-- TMPL_IF name="active" -->
|
|
<!-- TMPL_IF name="closedate" -->
|
|
<td colspan="1" rowspan="3"> </td>
|
|
<!-- TMPL_ELSE -->
|
|
<td colspan="3" rowspan="3"> </td>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
</tr>
|
|
<tr>
|
|
<th colspan="2">GST (<!-- TMPL_VAR NAME="gist_rate" -->)</th>
|
|
<th><!-- TMPL_VAR NAME="gist_rrp" --></th>
|
|
<th> </th>
|
|
<th> </th>
|
|
<th><!-- TMPL_VAR NAME="gist_est" --></th>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="2">Total GST Inc. (<!-- TMPL_VAR NAME="currency" -->)</th>
|
|
<th><!-- TMPL_VAR NAME="total_rrp_gsti" --></th>
|
|
<th> </th>
|
|
<th><!-- TMPL_VAR name="qty_total" --></th>
|
|
<th><!-- TMPL_VAR NAME="total_est_gsti" --></th>
|
|
</tr>
|
|
</table>
|
|
<!-- TMPL_ELSE -->
|
|
<table>
|
|
<tr><td>Basket empty</td></tr>
|
|
</table>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="listincgst" --><small class="highlight">** Vendor's listings already include GST.</small>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
<br />
|
|
<!-- TMPL_UNLESS name="closedate" -->
|
|
<fieldset id="acqui_basket_add">
|
|
<legend>Add To Order</legend>
|
|
<form action="/cgi-bin/koha/acqui/neworderbiblio.pl" method="post">
|
|
<input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
|
|
<input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
|
|
<ul><li><label for="q">From an existing record: </label><input id="q" type="text" size="25" name="q" />
|
|
<input type="submit" class="submit" value="Search" /></li>
|
|
<li><a href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">From a Suggestion</a></li>
|
|
<li><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">From a new (empty) record</a></li>
|
|
<li><a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">From an external source</a></li>
|
|
<li><a href="/cgi-bin/koha/acqui/addorderiso2709.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->"> From a staged file</a></li>
|
|
</ul>
|
|
</form>
|
|
</fieldset>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF --> <!-- TMPL_ELSE --> <!-- if we want just to select a basketgroup for a closed basket -->
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- TMPL_IF name="confirm_close" -->
|
|
<div id="closebasket_needsconfirmation" class="dialog alert">
|
|
|
|
<form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
|
|
<fieldset>
|
|
<legend>Closing basket <!-- TMPL_VAR name="basketname" --></legend>
|
|
<p>Are you sure you want to close this basket ?</p>
|
|
<p>
|
|
<label for="createorder">Create order ?</label>
|
|
<input type="checkbox" id="createorder" name="createorder"/>
|
|
</p>
|
|
<input type="hidden" id="basketno" value="<!-- TMPL_VAR name="basketno" -->" name="basketno" />
|
|
<input type="hidden" value="close" name="op" />
|
|
<input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
|
|
<input type="hidden" name="confirm" value="1" />
|
|
<input type="hidden" name="basketgroupname" value="<!-- TMPL_VAR name="basketgroupname" -->" />
|
|
<input type="submit" class="approve" value="Yes, Close (Y)" accesskey="y" />
|
|
<input type="submit" class="deny" value="No, Don't Close (N)" accesskey="n" onclick="javascript:window.location='/cgi-bin/koha/acqui/basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->';return false;" />
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|