Owen Leonard
7fba4e3ef8
This patch removes instances of dt_add_type_uk_date() from acquisitions templates and updates sorting configurations according to current guidelines. In cases where a formatted date was passed from a Perl script, the script has been modified to pass an unformatted date. Several instances of the no longer valid align attribute have been removed from <td> tags in favor of an existing "data" class which is suitable for display of currency values. To test, view the following pages in Acquisitions. Columns containing dates should sort correctly regardless of dateformat system preference setting. Columns containing bibliographic titles should ignore articles when sorting. - Add to an order from a staged file: The table of staged files should sort correctly. After clicking "add orders" for one of the staged files, the table of titles in that staged file should also be sorted correctly. - Add to an order from a subscription. The table of subscription search results should sort correctly. - Orders search results should sort correctly. - Late orders should sort correctly. - Search for a vendor. Click on the vendor name to view the vendor detail page. The table of contracts on this page should sort correctly. - From the Acquisitions home page click a number in the "spent" column of the table of available funds. The table of orders should sort correctly. - From the Acquisitions home page click a number in the "ordered" column of the table of available funds. The table of orders should sort correctly. - From a vendor detail page, click the "Receive shipments" button. On the receive shipments page the table of shipments should be sorted correctly. Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
120 lines
3.2 KiB
Text
120 lines
3.2 KiB
Text
[% USE KohaDates %]
|
|
[% USE ItemTypes %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Acquisitions › Spent</title>
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function() {
|
|
$("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aoColumnDefs": [
|
|
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
|
|
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
|
|
],
|
|
"sPaginationType": "four_button"
|
|
} ) );
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body id="acq_spent" class="acq">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE '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> › Spent - [% fund_code %]</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h1>Fund: [% fund_code %]</h1>
|
|
<h2>Spent</h2>
|
|
|
|
|
|
<table id="spent">
|
|
<thead>
|
|
<tr>
|
|
<th class="anti-the"> Title </th>
|
|
<th> Order </th>
|
|
<th> Vendor </th>
|
|
<th> Invoice </th>
|
|
<th> Item type </th>
|
|
<th> Received </th>
|
|
<th> Unit price </th>
|
|
<th class="title-string"> Date ordered </th>
|
|
<th class="title-string"> Date received </th>
|
|
<th> Subtotal </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
[% FOREACH order IN spent %]
|
|
[% IF loop.odd %]
|
|
<tr class="highlight">
|
|
[% ELSE %]
|
|
<tr>
|
|
[% END %]
|
|
|
|
<td class="cell">
|
|
[% order.title %]
|
|
</td>
|
|
<td class="cell">
|
|
[% order.ordernumber %]
|
|
</td>
|
|
<td class="cell">
|
|
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid %]">[% order.booksellerid %]</a>
|
|
</td>
|
|
<td class="cell">
|
|
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
|
|
</td>
|
|
<td class="cell">
|
|
[% ItemTypes.GetDescription( order.itype ) %]
|
|
</td>
|
|
<td class="cell">
|
|
[% order.quantityreceived %]
|
|
</td>
|
|
<td class="cell">
|
|
[% order.unitprice %]
|
|
</td>
|
|
<td class="cell">
|
|
<span title="[% order.entrydate %]">[% order.entrydate | $KohaDates %]</span>
|
|
</td>
|
|
<td class="cell">
|
|
<span title="[% order.datereceived %]">[% order.datereceived | $KohaDates %]</span>
|
|
</td>
|
|
<td class="data cell">
|
|
[% order.rowtotal %]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
<tfoot>
|
|
[% IF shipmentcosts.size %]
|
|
<tr valign="top">
|
|
<td colspan="9"> Sub total </td>
|
|
<td class="data"> [% subtotal %] </td>
|
|
</tr>
|
|
[% FOREACH shipmentcost IN shipmentcosts %]
|
|
<tr>
|
|
<td></td>
|
|
<td colspan="8">Shipping cost for invoice [% shipmentcost.invoicenumber %]</td>
|
|
<td class="data total">[% shipmentcost.shipmentcost %]</td>
|
|
</tr>
|
|
[% END %]
|
|
[% END %]
|
|
<tr>
|
|
<td colspan="9">TOTAL</td>
|
|
<td class="data total">[% total %]</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'acquisitions-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|