Lines 2-147
Link Here
|
2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
3 |
[% USE Price %] |
3 |
[% USE Price %] |
4 |
[% USE currency = format('%.2f') -%] |
4 |
[% USE currency = format('%.2f') -%] |
|
|
5 |
[% SET footerjs = 1 %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
<title>Koha › Acquisitions › [% IF ( date ) %] |
7 |
<title>Koha › Acquisitions › [% IF ( date ) %] |
7 |
Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% datereceived | $KohaDates %][% ELSE %]Receive orders from [% name %][% END %]</title> |
8 |
Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% datereceived | $KohaDates %][% ELSE %]Receive orders from [% name %][% END %]</title> |
8 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
9 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
10 |
[% INCLUDE 'doc-head-close.inc' %] |
10 |
[% INCLUDE 'datatables.inc' %] |
|
|
11 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
12 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script> |
13 |
<style type="text/css">#dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style> |
14 |
<script type="text/javascript"> |
15 |
//<![CDATA[ |
16 |
|
17 |
dt_overwrite_html_sorting_localeCompare(); |
18 |
|
19 |
var sticky_filters = [% sticky_filters %]; |
20 |
|
21 |
$(document).ready(function(){ |
22 |
if ( $("#pendingt").length ) { |
23 |
var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, { |
24 |
"bStateSave": true, |
25 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
26 |
"iDisplayLength": 10, |
27 |
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]], |
28 |
"aoColumnDefs": [ |
29 |
{ "aTargets": [ 4, 9, 10 ], "bSortable": false, "bSearchable": false }, |
30 |
], |
31 |
"aoColumns": [ |
32 |
{ "sType": "html" }, |
33 |
{ "sType": "html" }, |
34 |
{ "sType": "num-html" }, |
35 |
{ "sType": "anti-the" }, |
36 |
null, |
37 |
null, |
38 |
null, |
39 |
null, |
40 |
null, |
41 |
null, |
42 |
null, |
43 |
], |
44 |
'bAutoWidth': false, |
45 |
"sPaginationType": "four_button" |
46 |
} ) |
47 |
).columnFilter({ |
48 |
sPlaceHolder: "head:after", |
49 |
aoColumns: [ |
50 |
{ type: "text" }, |
51 |
{ type: "text" }, |
52 |
{ type: "text" }, |
53 |
{ type: "text" }, |
54 |
null, |
55 |
{ type: "text" }, |
56 |
{ type: "text" }, |
57 |
{ type: "text" }, |
58 |
{ type: "text" }, |
59 |
null, |
60 |
null |
61 |
] |
62 |
}); |
63 |
} |
64 |
|
65 |
if ( $("#receivedt").length ) { |
66 |
var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, { |
67 |
"bStateSave": true, |
68 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
69 |
"iDisplayLength": 10, |
70 |
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]], |
71 |
"aoColumnDefs": [ |
72 |
{ "aTargets": [ 5, -1 ], "bSortable": false, "bSearchable": false }, |
73 |
], |
74 |
"aoColumns": [ |
75 |
{ "sType": "html" }, |
76 |
{ "sType": "html" }, |
77 |
{ "sType": "html" }, |
78 |
{ "sType": "num-html" }, |
79 |
{ "sType": "anti-the" }, |
80 |
null, |
81 |
null, |
82 |
null, |
83 |
null, |
84 |
null, |
85 |
null, |
86 |
null |
87 |
], |
88 |
"sPaginationType": "four_button" |
89 |
} ) ); |
90 |
} |
91 |
|
92 |
// Keep filters from finishreceive.pl to parcel.pl |
93 |
$.cookie("filter_parcel_summary", $("#summaryfilter").val()); |
94 |
$.cookie("filter_parcel_basketname", $("#basketfilter").val()); |
95 |
$.cookie("filter_parcel_orderno", $("#orderfilter").val()); |
96 |
$.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val()); |
97 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
98 |
|
99 |
$("#filterform").on('submit', function(){ |
100 |
$.cookie("filter_parcel_summary", $("#summaryfilter").val()); |
101 |
$.cookie("filter_parcel_basketname", $("#basketfilter").val()); |
102 |
$.cookie("filter_parcel_orderno", $("#orderfilter").val()); |
103 |
$.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val()); |
104 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
105 |
}); |
106 |
|
107 |
$(".previewData").on("click", function(e){ |
108 |
e.preventDefault(); |
109 |
var ltitle = $(this).text(); |
110 |
var page = $(this).attr("href"); |
111 |
$("#dataPreviewLabel").text(ltitle); |
112 |
$("#dataPreview .modal-body").load(page + " div"); |
113 |
$('#dataPreview').modal({show:true}); |
114 |
}); |
115 |
$("#dataPreview").on("hidden", function(){ |
116 |
$("#dataPreviewLabel").html(""); |
117 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
118 |
}); |
119 |
|
120 |
}); |
121 |
|
122 |
// Case-insensitive version of jquery's contains function |
123 |
jQuery.extend(jQuery.expr[':'], { |
124 |
icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0" |
125 |
}); |
126 |
|
127 |
// Contains exactly function |
128 |
jQuery.extend(jQuery.expr[':'], { |
129 |
containsExactly: "$(a).text() == m[3]" |
130 |
}); |
131 |
|
132 |
//]]> |
133 |
</script> |
134 |
<script type="text/javascript"> |
135 |
//<![CDATA[ |
136 |
function transfer_order_popup(ordernumber) { |
137 |
var url = "/cgi-bin/koha/acqui/transferorder.pl?" |
138 |
+ "ordernumber=" + ordernumber |
139 |
window.open(url, 'TransferOrder'); |
140 |
} |
141 |
|
142 |
//]]> |
143 |
</script> |
144 |
</head> |
11 |
</head> |
|
|
12 |
|
145 |
<body id="acq_parcel" class="acq"> |
13 |
<body id="acq_parcel" class="acq"> |
146 |
[% INCLUDE 'header.inc' %] |
14 |
[% INCLUDE 'header.inc' %] |
147 |
[% INCLUDE 'acquisitions-search.inc' %] |
15 |
[% INCLUDE 'acquisitions-search.inc' %] |
Lines 546-549
Link Here
|
546 |
[% INCLUDE 'acquisitions-menu.inc' %] |
414 |
[% INCLUDE 'acquisitions-menu.inc' %] |
547 |
</div> |
415 |
</div> |
548 |
</div> |
416 |
</div> |
|
|
417 |
|
418 |
[% MACRO jsinclude BLOCK %] |
419 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu.js"></script> |
420 |
[% INCLUDE 'datatables.inc' %] |
421 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
422 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script> |
423 |
<style type="text/css">#dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style> |
424 |
<script type="text/javascript"> |
425 |
|
426 |
dt_overwrite_html_sorting_localeCompare(); |
427 |
var sticky_filters = [% sticky_filters %]; |
428 |
|
429 |
$(document).ready(function(){ |
430 |
if ( $("#pendingt").length ) { |
431 |
var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, { |
432 |
"bStateSave": true, |
433 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
434 |
"iDisplayLength": 10, |
435 |
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]], |
436 |
"aoColumnDefs": [ |
437 |
{ "aTargets": [ 4, 9, 10 ], "bSortable": false, "bSearchable": false }, |
438 |
], |
439 |
"aoColumns": [ |
440 |
{ "sType": "html" }, |
441 |
{ "sType": "html" }, |
442 |
{ "sType": "num-html" }, |
443 |
{ "sType": "anti-the" }, |
444 |
null, |
445 |
null, |
446 |
null, |
447 |
null, |
448 |
null, |
449 |
null, |
450 |
null, |
451 |
], |
452 |
'bAutoWidth': false, |
453 |
"sPaginationType": "four_button" |
454 |
}) |
455 |
).columnFilter({ |
456 |
sPlaceHolder: "head:after", |
457 |
aoColumns: [ |
458 |
{ type: "text" }, |
459 |
{ type: "text" }, |
460 |
{ type: "text" }, |
461 |
{ type: "text" }, |
462 |
null, |
463 |
{ type: "text" }, |
464 |
{ type: "text" }, |
465 |
{ type: "text" }, |
466 |
{ type: "text" }, |
467 |
null, |
468 |
null |
469 |
] |
470 |
}); |
471 |
} |
472 |
|
473 |
if ( $("#receivedt").length ) { |
474 |
var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, { |
475 |
"bStateSave": true, |
476 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
477 |
"iDisplayLength": 10, |
478 |
"aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]], |
479 |
"aoColumnDefs": [ |
480 |
{ "aTargets": [ 5, -1 ], "bSortable": false, "bSearchable": false }, |
481 |
], |
482 |
"aoColumns": [ |
483 |
{ "sType": "html" }, |
484 |
{ "sType": "html" }, |
485 |
{ "sType": "html" }, |
486 |
{ "sType": "num-html" }, |
487 |
{ "sType": "anti-the" }, |
488 |
null, |
489 |
null, |
490 |
null, |
491 |
null, |
492 |
null, |
493 |
null, |
494 |
null |
495 |
], |
496 |
"sPaginationType": "four_button" |
497 |
})); |
498 |
} |
499 |
|
500 |
// Keep filters from finishreceive.pl to parcel.pl |
501 |
$.cookie("filter_parcel_summary", $("#summaryfilter").val()); |
502 |
$.cookie("filter_parcel_basketname", $("#basketfilter").val()); |
503 |
$.cookie("filter_parcel_orderno", $("#orderfilter").val()); |
504 |
$.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val()); |
505 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
506 |
|
507 |
$("#filterform").on('submit', function(){ |
508 |
$.cookie("filter_parcel_summary", $("#summaryfilter").val()); |
509 |
$.cookie("filter_parcel_basketname", $("#basketfilter").val()); |
510 |
$.cookie("filter_parcel_orderno", $("#orderfilter").val()); |
511 |
$.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val()); |
512 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
513 |
}); |
514 |
|
515 |
$(".previewData").on("click", function(e){ |
516 |
e.preventDefault(); |
517 |
var ltitle = $(this).text(); |
518 |
var page = $(this).attr("href"); |
519 |
$("#dataPreviewLabel").text(ltitle); |
520 |
$("#dataPreview .modal-body").load(page + " div"); |
521 |
$('#dataPreview').modal({show:true}); |
522 |
}); |
523 |
$("#dataPreview").on("hidden", function(){ |
524 |
$("#dataPreviewLabel").html(""); |
525 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
526 |
}); |
527 |
|
528 |
}); |
529 |
|
530 |
// Case-insensitive version of jquery's contains function |
531 |
jQuery.extend(jQuery.expr[':'], { |
532 |
icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0" |
533 |
}); |
534 |
|
535 |
// Contains exactly function |
536 |
jQuery.extend(jQuery.expr[':'], { |
537 |
containsExactly: "$(a).text() == m[3]" |
538 |
}); |
539 |
|
540 |
function transfer_order_popup(ordernumber) { |
541 |
var url = "/cgi-bin/koha/acqui/transferorder.pl?" |
542 |
+ "ordernumber=" + ordernumber |
543 |
window.open(url, 'TransferOrder'); |
544 |
} |
545 |
</script> |
546 |
[% END %] |
547 |
|
549 |
[% INCLUDE 'intranet-bottom.inc' %] |
548 |
[% INCLUDE 'intranet-bottom.inc' %] |