Lines 102-107
Link Here
|
102 |
<th>Order line search</th> |
102 |
<th>Order line search</th> |
103 |
<th>Summary search</th> |
103 |
<th>Summary search</th> |
104 |
<th> </th> |
104 |
<th> </th> |
|
|
105 |
<th>Replacement price search</th> |
105 |
<th>Quantity search</th> |
106 |
<th>Quantity search</th> |
106 |
<th>Unit cost search</th> |
107 |
<th>Unit cost search</th> |
107 |
<th>Order cost search</th> |
108 |
<th>Order cost search</th> |
Lines 115-120
Link Here
|
115 |
<th>Order line</th> |
116 |
<th>Order line</th> |
116 |
<th>Summary</th> |
117 |
<th>Summary</th> |
117 |
<th>More</th> |
118 |
<th>More</th> |
|
|
119 |
<th>Replacement price</th> |
118 |
<th>Quantity</th> |
120 |
<th>Quantity</th> |
119 |
<th>Unit cost</th> |
121 |
<th>Unit cost</th> |
120 |
<th>Order cost</th> |
122 |
<th>Order cost</th> |
Lines 167-172
Link Here
|
167 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_order.biblionumber %]" class="previewData">MARC</a><br> |
169 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_order.biblionumber %]" class="previewData">MARC</a><br> |
168 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% loop_order.biblionumber %]" class="previewData">Card</a> |
170 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% loop_order.biblionumber %]" class="previewData">Card</a> |
169 |
</td> |
171 |
</td> |
|
|
172 |
<td>[% loop_order.replacementprice | $Price %]</td> |
170 |
<td>[% loop_order.quantity %]</td> |
173 |
<td>[% loop_order.quantity %]</td> |
171 |
<td>[% loop_order.ecost | $Price %]</td> |
174 |
<td>[% loop_order.ecost | $Price %]</td> |
172 |
<td>[% loop_order.total | $Price %]</td> |
175 |
<td>[% loop_order.total | $Price %]</td> |
Lines 227-232
Link Here
|
227 |
<th title="Item holds / Total holds">Holds</th> |
230 |
<th title="Item holds / Total holds">Holds</th> |
228 |
<th>Summary</th> |
231 |
<th>Summary</th> |
229 |
<th>More</th> |
232 |
<th>More</th> |
|
|
233 |
<th>Replacement price</th> |
230 |
<th>Quantity</th> |
234 |
<th>Quantity</th> |
231 |
<th>Fund</th> |
235 |
<th>Fund</th> |
232 |
<th>Est cost</th> |
236 |
<th>Est cost</th> |
Lines 318-323
Link Here
|
318 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% order.biblionumber %]" class="previewData">MARC</a><br> |
322 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% order.biblionumber %]" class="previewData">MARC</a><br> |
319 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% order.biblionumber %]" class="previewData">Card</a> |
323 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% order.biblionumber %]" class="previewData">Card</a> |
320 |
</td> |
324 |
</td> |
|
|
325 |
<td>[% order.replacementprice | $Price %]</td> |
321 |
<td>[% order.quantityreceived %]</td> |
326 |
<td>[% order.quantityreceived %]</td> |
322 |
<td>[% order.budget.budget_name %]</td> |
327 |
<td>[% order.budget.budget_name %]</td> |
323 |
<td>[% order.ecost | $Price %]</td> |
328 |
<td>[% order.ecost | $Price %]</td> |
Lines 437-532
Link Here
|
437 |
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") %] |
442 |
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") %] |
438 |
<style type="text/css">#dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style> |
443 |
<style type="text/css">#dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style> |
439 |
<script type="text/javascript"> |
444 |
<script type="text/javascript"> |
440 |
|
445 |
|
441 |
dt_overwrite_html_sorting_localeCompare(); |
446 |
dt_overwrite_html_sorting_localeCompare(); |
442 |
var sticky_filters = [% sticky_filters %]; |
447 |
var sticky_filters = [% sticky_filters %]; |
443 |
|
448 |
|
444 |
$(document).ready(function(){ |
449 |
$(document).ready(function(){ |
445 |
if ( $("#pendingt").length ) { |
450 |
if ( $("#pendingt").length ) { |
446 |
var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, { |
451 |
var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, { |
447 |
"bStateSave": true, |
452 |
"bStateSave": true, |
448 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
453 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
449 |
"iDisplayLength": 10, |
454 |
"iDisplayLength": 10, |
450 |
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]], |
455 |
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]], |
451 |
"aoColumnDefs": [ |
456 |
"aoColumnDefs": [ |
452 |
{ "aTargets": [ 4, 9, 10 ], "bSortable": false, "bSearchable": false }, |
457 |
{ "aTargets": [ 4, 9, 10 ], "bSortable": false, "bSearchable": false }, |
453 |
], |
458 |
], |
454 |
"aoColumns": [ |
459 |
"aoColumns": [ |
455 |
{ "sType": "html" }, |
460 |
{ "sType": "html" }, |
456 |
{ "sType": "html" }, |
461 |
{ "sType": "html" }, |
457 |
{ "sType": "num-html" }, |
462 |
{ "sType": "num-html" }, |
458 |
{ "sType": "anti-the" }, |
463 |
{ "sType": "anti-the" }, |
459 |
null, |
464 |
null, |
460 |
null, |
465 |
null, |
461 |
null, |
466 |
null, |
462 |
null, |
467 |
null, |
463 |
null, |
468 |
null, |
464 |
null, |
469 |
null, |
465 |
null, |
470 |
null, |
466 |
], |
471 |
null, |
467 |
'bAutoWidth': false, |
472 |
], |
468 |
"sPaginationType": "four_button" |
473 |
'bAutoWidth': false, |
469 |
}) |
474 |
"sPaginationType": "four_button" |
470 |
).columnFilter({ |
475 |
} ) |
471 |
sPlaceHolder: "head:after", |
476 |
).columnFilter({ |
472 |
aoColumns: [ |
477 |
sPlaceHolder: "head:after", |
473 |
{ type: "text" }, |
478 |
aoColumns: [ |
474 |
{ type: "text" }, |
479 |
{ type: "text" }, |
475 |
{ type: "text" }, |
480 |
{ type: "text" }, |
476 |
{ type: "text" }, |
481 |
{ type: "text" }, |
477 |
null, |
482 |
{ type: "text" }, |
478 |
{ type: "text" }, |
483 |
null, |
479 |
{ type: "text" }, |
484 |
{ type: "text" }, |
480 |
{ type: "text" }, |
485 |
{ type: "text" }, |
481 |
{ type: "text" }, |
486 |
{ type: "text" }, |
482 |
null, |
487 |
{ type: "text" }, |
483 |
null |
488 |
{ type: "text" }, |
484 |
] |
489 |
null, |
485 |
}); |
490 |
null |
486 |
} |
491 |
] |
487 |
|
492 |
}); |
488 |
if ( $("#receivedt").length ) { |
493 |
} |
489 |
var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, { |
494 |
|
490 |
"bStateSave": true, |
495 |
if ( $("#receivedt").length ) { |
491 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
496 |
var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, { |
492 |
"iDisplayLength": 10, |
497 |
"bStateSave": true, |
493 |
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]], |
498 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
494 |
"aoColumnDefs": [ |
499 |
"iDisplayLength": 10, |
495 |
{ "aTargets": [ 5, -1 ], "bSortable": false, "bSearchable": false }, |
500 |
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]], |
496 |
], |
501 |
"aoColumnDefs": [ |
497 |
"aoColumns": [ |
502 |
{ "aTargets": [ 5, -1 ], "bSortable": false, "bSearchable": false }, |
498 |
{ "sType": "html" }, |
503 |
], |
499 |
{ "sType": "html" }, |
504 |
"aoColumns": [ |
500 |
{ "sType": "html" }, |
505 |
{ "sType": "html" }, |
501 |
{ "sType": "num-html" }, |
506 |
{ "sType": "html" }, |
502 |
{ "sType": "anti-the" }, |
507 |
{ "sType": "html" }, |
503 |
null, |
508 |
{ "sType": "num-html" }, |
504 |
null, |
509 |
{ "sType": "anti-the" }, |
505 |
null, |
510 |
null, |
506 |
null, |
511 |
null, |
507 |
null, |
512 |
null, |
508 |
null, |
513 |
null, |
509 |
null |
514 |
null, |
510 |
], |
515 |
null, |
511 |
"sPaginationType": "four_button" |
516 |
null |
512 |
})); |
517 |
], |
513 |
} |
518 |
"sPaginationType": "four_button" |
514 |
|
519 |
})); |
515 |
// Keep filters from finishreceive.pl to parcel.pl |
520 |
} |
|
|
521 |
|
522 |
// Keep filters from finishreceive.pl to parcel.pl |
523 |
$.cookie("filter_parcel_summary", $("#summaryfilter").val()); |
524 |
$.cookie("filter_parcel_basketname", $("#basketfilter").val()); |
525 |
$.cookie("filter_parcel_orderno", $("#orderfilter").val()); |
526 |
$.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val()); |
527 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
528 |
|
529 |
$("#filterform").on('submit', function(){ |
516 |
$.cookie("filter_parcel_summary", $("#summaryfilter").val()); |
530 |
$.cookie("filter_parcel_summary", $("#summaryfilter").val()); |
517 |
$.cookie("filter_parcel_basketname", $("#basketfilter").val()); |
531 |
$.cookie("filter_parcel_basketname", $("#basketfilter").val()); |
518 |
$.cookie("filter_parcel_orderno", $("#orderfilter").val()); |
532 |
$.cookie("filter_parcel_orderno", $("#orderfilter").val()); |
519 |
$.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val()); |
533 |
$.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val()); |
520 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
534 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
521 |
|
535 |
}); |
522 |
$("#filterform").on('submit', function(){ |
536 |
|
523 |
$.cookie("filter_parcel_summary", $("#summaryfilter").val()); |
|
|
524 |
$.cookie("filter_parcel_basketname", $("#basketfilter").val()); |
525 |
$.cookie("filter_parcel_orderno", $("#orderfilter").val()); |
526 |
$.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val()); |
527 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
528 |
}); |
529 |
|
530 |
$(".previewData").on("click", function(e){ |
537 |
$(".previewData").on("click", function(e){ |
531 |
e.preventDefault(); |
538 |
e.preventDefault(); |
532 |
var ltitle = $(this).text(); |
539 |
var ltitle = $(this).text(); |
Lines 539-562
Link Here
|
539 |
$("#dataPreviewLabel").html(""); |
546 |
$("#dataPreviewLabel").html(""); |
540 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
547 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
541 |
}); |
548 |
}); |
542 |
|
549 |
|
543 |
}); |
|
|
544 |
|
545 |
// Case-insensitive version of jquery's contains function |
546 |
jQuery.extend(jQuery.expr[':'], { |
547 |
icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0" |
548 |
}); |
550 |
}); |
549 |
|
551 |
|
|
|
552 |
// Case-insensitive version of jquery's contains function |
553 |
jQuery.extend(jQuery.expr[':'], { |
554 |
icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0" |
555 |
}); |
556 |
|
550 |
// Contains exactly function |
557 |
// Contains exactly function |
551 |
jQuery.extend(jQuery.expr[':'], { |
558 |
jQuery.extend(jQuery.expr[':'], { |
552 |
containsExactly: "$(a).text() == m[3]" |
559 |
containsExactly: "$(a).text() == m[3]" |
553 |
}); |
560 |
}); |
554 |
|
561 |
|
555 |
function transfer_order_popup(ordernumber) { |
562 |
function transfer_order_popup(ordernumber) { |
556 |
var url = "/cgi-bin/koha/acqui/transferorder.pl?" |
563 |
var url = "/cgi-bin/koha/acqui/transferorder.pl?" |
557 |
+ "ordernumber=" + ordernumber |
564 |
+ "ordernumber=" + ordernumber |
558 |
window.open(url, 'TransferOrder'); |
565 |
window.open(url, 'TransferOrder'); |
559 |
} |
566 |
} |
560 |
</script> |
567 |
</script> |
561 |
[% END %] |
568 |
[% END %] |
562 |
|
569 |
|
563 |
- |
|
|