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 357-362
Link Here
|
357 |
|
358 |
|
358 |
<thead> |
359 |
<thead> |
359 |
<tr> |
360 |
<tr> |
|
|
361 |
<th class="NoVisible">Timestamp</th> |
360 |
<th>Invoice</th> |
362 |
<th>Invoice</th> |
361 |
<th>Basket</th> |
363 |
<th>Basket</th> |
362 |
<th>Order number</th> |
364 |
<th>Order number</th> |
Lines 372-378
Link Here
|
372 |
</thead> |
374 |
</thead> |
373 |
<tbody> |
375 |
<tbody> |
374 |
[% FOR order IN orders %] |
376 |
[% FOR order IN orders %] |
375 |
<tr> |
377 |
[% IF order.parent_ordernumber != order.ordernumber %] |
|
|
378 |
<tr data-tt-id="[% order.ordernumber | html %]" data-tt-parent-id="[% order.parent_ordernumber | html %]"> |
379 |
[% ELSE %] |
380 |
<tr data-tt-id="[% order.parent_ordernumber | html %]"> |
381 |
[% END %] |
382 |
<td>[% order.timestamp | html %]</td> |
376 |
<td> |
383 |
<td> |
377 |
[% IF order.invoice %] |
384 |
[% IF order.invoice %] |
378 |
[% IF CAN_user_acquisition %] |
385 |
[% IF CAN_user_acquisition %] |
Lines 440-445
Link Here
|
440 |
</script> |
447 |
</script> |
441 |
[% Asset.js("js/serials-toolbar.js") | $raw %] |
448 |
[% Asset.js("js/serials-toolbar.js") | $raw %] |
442 |
[% INCLUDE 'datatables.inc' %] |
449 |
[% INCLUDE 'datatables.inc' %] |
|
|
450 |
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] |
443 |
[% INCLUDE 'columns_settings.inc' %] |
451 |
[% INCLUDE 'columns_settings.inc' %] |
444 |
<script> |
452 |
<script> |
445 |
// the english words used in display purposes |
453 |
// the english words used in display purposes |
Lines 454-467
Link Here
|
454 |
|
462 |
|
455 |
var columns_settings = [% ColumnsSettings.GetColumns( 'serials', 'subscription-detail', 'orders', 'json' ) | $raw %]; |
463 |
var columns_settings = [% ColumnsSettings.GetColumns( 'serials', 'subscription-detail', 'orders', 'json' ) | $raw %]; |
456 |
var table = KohaTable("orders", { |
464 |
var table = KohaTable("orders", { |
457 |
'bPaginate': false, |
|
|
458 |
'bAutoWidth': false, |
459 |
"aaSorting": [[ 5, "asc" ], [ 2, "desc" ]], // Order by status then ordernumber |
460 |
"aoColumnDefs": [ |
465 |
"aoColumnDefs": [ |
|
|
466 |
{ "bVisible": false, "aTargets": [ 'NoVisible' ] }, |
467 |
{ "bSortable": false, "aTargets": ["_all"] }, |
461 |
{ "aTargets": "title-string", "sType": "title-string" } |
468 |
{ "aTargets": "title-string", "sType": "title-string" } |
462 |
] |
469 |
], |
|
|
470 |
|
471 |
'bPaginate': false, |
472 |
'bAutoWidth': false, |
473 |
'bSort': true, |
474 |
'aaSortingFixed': [[ 0, 'desc' ]], |
475 |
"bSortCellsTop": true |
463 |
}, columns_settings); |
476 |
}, columns_settings); |
464 |
|
477 |
|
|
|
478 |
$(table).treetable({ |
479 |
expandable: true |
480 |
}); |
481 |
$(table).treetable('expandAll'); |
482 |
|
465 |
$("#hide_received_orders").click(function(e){ |
483 |
$("#hide_received_orders").click(function(e){ |
466 |
e.preventDefault(); |
484 |
e.preventDefault(); |
467 |
table.fnFilter( '^$', 4, true ); // Not empty "Receive date" columns |
485 |
table.fnFilter( '^$', 4, true ); // Not empty "Receive date" columns |
468 |
- |
|
|