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