$(document).ready(function() {
$("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
- { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
- { "sType": "title-string", "aTargets" : [ "title-string" ] }
+ { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
],
"sPaginationType": "full"
}));
<tr>
<th>Invoice</th>
<th>Order number</th>
- <th class="title-string">Creation date</th>
- <th class="title-string">Receive date</th>
+ <th>Creation date</th>
+ <th>Receive date</th>
<th>Quantity received</th>
- <th class="title-string">Status</th>
+ <th>Status</th>
<th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th>
<th>Internal note</th>
</tr>
[% END %]
</td>
<td>[% suborder.ordernumber | html %]</td>
- <td><span title="[% suborder.basket.creationdate | uri %]">[% suborder.basket.creationdate | $KohaDates%]</span></td>
- <td>[% IF suborder.datereceived %]<span title="[% suborder.datereceived | uri %]">[% suborder.datereceived | $KohaDates %]</span>[% END %]</td>
+ <td data-order="[% suborder.basket.creationdate | uri %]">[% suborder.basket.creationdate | $KohaDates%]</td>
+ <td data-order="[% suborder.datereceived | uri %]">
+ [% IF suborder.datereceived %]
+ [% suborder.datereceived | $KohaDates %]
+ [% END %]
+ </td>
<td>[% suborder.quantityreceived | html %]</td>
- <td>
- [% SWITCH suborder.orderstatus %]
- [%# FIXME We should only see/display Complete here, right? %]
- [% CASE 'new' %]<span title="status_1">New</span>
- [% CASE 'ordered' %]<span title="status_2">Ordered</span>
- [% CASE 'partial' %]<span title="status_3">Partial</span>
- [% CASE 'complete' %]<span title="status_4">Complete</span>
- [% CASE 'cancelled' %]<span title="status_5">Cancelled</span>
+ [% SWITCH suborder.orderstatus %]
+ [%# FIXME We should only see/display Complete here, right? %]
+ [% CASE 'new' %]
+ <td data-order="status_1">
+ New
+ [% CASE 'ordered' %]
+ <td data-order="status_2">
+ Ordered
+ [% CASE 'partial' %]
+ <td data-order="status_3">
+ Partial
+ [% CASE 'complete' %]
+ <td data-order="status_4">
+ Complete
+ [% CASE 'cancelled' %]
+ <td data-order="status_5">
+ Cancelled
[% END %]
</td>
<td>
$(document).ready(function() {
$("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
- { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
- { "sType": "title-string", "aTargets" : [ "title-string" ] }
+ { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
],
"sPaginationType": "full"
} ) );
$(document).ready(function() {
var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
- { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
- { "sType": "title-string", "aTargets" : [ "title-string" ] }
+ { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
],
'sDom': 't'
} ) );