Lines 11-16
Link Here
|
11 |
<title>Koha › Serials › Details for subscription #[% subscriptionid | html %]</title> |
11 |
<title>Koha › Serials › Details for subscription #[% subscriptionid | html %]</title> |
12 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
[% INCLUDE 'doc-head-close.inc' %] |
13 |
[% Asset.css("css/datatables.css") | $raw %] |
13 |
[% Asset.css("css/datatables.css") | $raw %] |
|
|
14 |
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") | $raw %] |
14 |
</head> |
15 |
</head> |
15 |
|
16 |
|
16 |
<body id="ser_subscription-detail" class="ser"> |
17 |
<body id="ser_subscription-detail" class="ser"> |
Lines 344-349
Link Here
|
344 |
|
345 |
|
345 |
<thead> |
346 |
<thead> |
346 |
<tr> |
347 |
<tr> |
|
|
348 |
<th class="NoVisible">Timestamp</th> |
347 |
<th>Invoice</th> |
349 |
<th>Invoice</th> |
348 |
<th>Basket</th> |
350 |
<th>Basket</th> |
349 |
<th>Order number</th> |
351 |
<th>Order number</th> |
Lines 359-365
Link Here
|
359 |
</thead> |
361 |
</thead> |
360 |
<tbody> |
362 |
<tbody> |
361 |
[% FOR order IN orders %] |
363 |
[% FOR order IN orders %] |
362 |
<tr> |
364 |
[% IF order.parent_ordernumber != order.ordernumber %] |
|
|
365 |
<tr data-tt-id="[% order.ordernumber | html %]" data-tt-parent-id="[% order.parent_ordernumber | html %]"> |
366 |
[% ELSE %] |
367 |
<tr data-tt-id="[% order.parent_ordernumber | html %]"> |
368 |
[% END %] |
369 |
<td>[% order.timestamp | html %]</td> |
363 |
<td> |
370 |
<td> |
364 |
[% IF order.invoice %] |
371 |
[% IF order.invoice %] |
365 |
[% IF CAN_user_acquisition %] |
372 |
[% IF CAN_user_acquisition %] |
Lines 425-430
Link Here
|
425 |
</script> |
432 |
</script> |
426 |
[% Asset.js("js/serials-toolbar.js") | $raw %] |
433 |
[% Asset.js("js/serials-toolbar.js") | $raw %] |
427 |
[% INCLUDE 'datatables.inc' %] |
434 |
[% INCLUDE 'datatables.inc' %] |
|
|
435 |
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] |
428 |
[% INCLUDE 'columns_settings.inc' %] |
436 |
[% INCLUDE 'columns_settings.inc' %] |
429 |
<script type="text/javascript"> |
437 |
<script type="text/javascript"> |
430 |
// the english words used in display purposes |
438 |
// the english words used in display purposes |
Lines 439-452
Link Here
|
439 |
|
447 |
|
440 |
var columns_settings = [% ColumnsSettings.GetColumns( 'serials', 'subscription-detail', 'orders', 'json' ) | $raw %]; |
448 |
var columns_settings = [% ColumnsSettings.GetColumns( 'serials', 'subscription-detail', 'orders', 'json' ) | $raw %]; |
441 |
var table = KohaTable("orders", { |
449 |
var table = KohaTable("orders", { |
442 |
'bPaginate': false, |
|
|
443 |
'bAutoWidth': false, |
444 |
"aaSorting": [[ 5, "asc" ], [ 2, "desc" ]], // Order by status then ordernumber |
445 |
"aoColumnDefs": [ |
450 |
"aoColumnDefs": [ |
|
|
451 |
{ "bVisible": false, "aTargets": [ 'NoVisible' ] }, |
452 |
{ "bSortable": false, "aTargets": ["_all"] }, |
446 |
{ "aTargets": "title-string", "sType": "title-string" } |
453 |
{ "aTargets": "title-string", "sType": "title-string" } |
447 |
] |
454 |
], |
|
|
455 |
|
456 |
'bPaginate': false, |
457 |
'bAutoWidth': false, |
458 |
'bSort': true, |
459 |
'aaSortingFixed': [[ 0, 'desc' ]], |
460 |
"bSortCellsTop": true |
448 |
}, columns_settings); |
461 |
}, columns_settings); |
449 |
|
462 |
|
|
|
463 |
$(table).treetable({ |
464 |
expandable: true |
465 |
}); |
466 |
$(table).treetable('expandAll'); |
467 |
|
450 |
$("#hide_received_orders").click(function(e){ |
468 |
$("#hide_received_orders").click(function(e){ |
451 |
e.preventDefault(); |
469 |
e.preventDefault(); |
452 |
table.fnFilter( '^$', 4, true ); // Not empty "Receive date" columns |
470 |
table.fnFilter( '^$', 4, true ); // Not empty "Receive date" columns |
453 |
- |
|
|