Owen Leonard
0bb33cd7ce
Signed-off-by: Galen Charlton <gmcharlt@gmail.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
338 lines
19 KiB
Cheetah
338 lines
19 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>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function confirm_deletion() {
|
|
var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
|
|
if (is_confirmed) {
|
|
window.location = "<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&basketno=<!-- TMPL_VAR name="basketno" -->&booksellerid=<!-- TMPL_VAR name="booksellerid" -->";
|
|
}
|
|
}
|
|
//]]>
|
|
</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("closebutton", {disabled:true});
|
|
<!-- TMPL_ELSIF name="uncertainprices" -->
|
|
new YAHOO.widget.Button("uncertpricesbutton");
|
|
<!-- TMPL_ELSE -->
|
|
new YAHOO.widget.Button("closebutton");
|
|
<!-- /TMPL_IF -->
|
|
new YAHOO.widget.Button("basketheadbutton");
|
|
new YAHOO.widget.Button("exportbutton");
|
|
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="javascript:confirm_deletion();" 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="button" disabled="disabled" title="You can not close this basket">Can not close basket</button></li>
|
|
<!-- TMPL_ELSIF name="uncertainprices" -->
|
|
<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 -->
|
|
<li><a href="<!-- TMPL_VAR name="script_name" -->?op=export&basketno=<!-- TMPL_VAR name="basketno" -->&booksellerid=<!-- TMPL_VAR name="booksellerid" -->" class="button" id="exportbutton">Export this basket as CSV</a></li>
|
|
</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>Vendor 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" class="yui-g">
|
|
<h2>Basket details</h2>
|
|
<!-- TMPL_IF NAME="basketnote" --><p>Internal note: <!-- TMPL_VAR NAME="basketnote" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="basketbooksellernote" --><p>Vendor note: <!-- TMPL_VAR NAME="basketbooksellernote" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="basketcontractno" -->
|
|
<p>Contract name: <a href="../admin/aqcontract.pl?op=add_form&contractnumber=<!-- TMPL_VAR NAME="basketcontractno" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- 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>Opened on: <!-- TMPL_VAR NAME="creationdate" --></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> Basket group: <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 basket group" />
|
|
</p>
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
<a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=<!-- TMPL_VAR name="basketgroups" -->&basketgroupid=<!-- TMPL_VAR name="id" -->"><!-- TMPL_VAR name="name" --></a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
</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>RRP</th>
|
|
<th>Est.</th>
|
|
<th>Qty.</th>
|
|
<th>Total</th>
|
|
<th>Fund</th>
|
|
<!-- TMPL_IF name="active" -->
|
|
<!-- TMPL_UNLESS name="closedate" -->
|
|
<th>Modify</th>
|
|
<th>Delete</th>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_IF -->
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<!-- TMPL_IF name="GST" -->
|
|
<tr>
|
|
<th>Total Tax 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>Tax (<!-- 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>Total Tax 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>
|
|
<!-- TMPL_ELSE -->
|
|
<tr>
|
|
<th>Total (<!-- 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>
|
|
<!-- /TMPL_IF -->
|
|
</tfoot>
|
|
<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>
|
|
<p><!-- TMPL_IF NAME="order_received" --> (rcvd)<!-- /TMPL_IF -->
|
|
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" ESCAPE="html" --></a> by <!-- TMPL_VAR NAME="author" -->
|
|
<!-- TMPL_IF name="notes" --> <!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="isbn"--> - <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="publishercode" -->, <!-- TMPL_VAR NAME="publishercode" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="publicationyear" -->, <!-- TMPL_VAR NAME="publicationyear" --><!-- /TMPL_IF -->
|
|
</p>
|
|
</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?ordernumber=<!-- TMPL_VAR NAME="ordernumber" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">Modify</a>
|
|
</td>
|
|
<td>
|
|
<a href="addorder.pl?ordernumber=<!-- 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>
|
|
</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 tax.</small>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
<br />
|
|
<!-- TMPL_UNLESS name="closedate" -->
|
|
<fieldset id="acqui_basket_add">
|
|
<legend>Add Order To Basket</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">
|
|
<h1>Are you sure you want to close basket <!-- TMPL_VAR name="basketname" -->?</h1>
|
|
<p>
|
|
<label for="createbasketgroup">create a purchase order now?</label>
|
|
<input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
|
|
</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;" />
|
|
</form>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|