|
Lines 4-9
Link Here
|
| 4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 5 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
| 6 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
6 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
|
|
7 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
| 7 |
[% INCLUDE 'datatables-strings.inc' %] |
8 |
[% INCLUDE 'datatables-strings.inc' %] |
| 8 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
9 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
| 9 |
[% INCLUDE 'greybox.inc' %] |
10 |
[% INCLUDE 'greybox.inc' %] |
|
Lines 14-23
Link Here
|
| 14 |
dt_overwrite_html_sorting_localeCompare(); |
15 |
dt_overwrite_html_sorting_localeCompare(); |
| 15 |
|
16 |
|
| 16 |
$(document).ready(function(){ |
17 |
$(document).ready(function(){ |
|
|
18 |
|
| 17 |
var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, { |
19 |
var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 18 |
"bStateSave": true, |
20 |
"bStateSave": true, |
| 19 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
21 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
| 20 |
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], |
22 |
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], |
| 21 |
"aoColumnDefs": [ |
23 |
"aoColumnDefs": [ |
| 22 |
{ "aTargets": [ 3, 8, 9 ], "bSortable": false, "bSearchable": false }, |
24 |
{ "aTargets": [ 3, 8, 9 ], "bSortable": false, "bSearchable": false }, |
| 23 |
], |
25 |
], |
|
Lines 33-44
Link Here
|
| 33 |
null, |
35 |
null, |
| 34 |
null, |
36 |
null, |
| 35 |
], |
37 |
], |
|
|
38 |
'bAutoWidth': false, |
| 36 |
"sPaginationType": "four_button" |
39 |
"sPaginationType": "four_button" |
| 37 |
} ) ); |
40 |
} ) |
|
|
41 |
).columnFilter({ |
| 42 |
sPlaceHolder: "head:after", |
| 43 |
aoColumns: [ |
| 44 |
{ type: "text" }, |
| 45 |
{ type: "text" }, |
| 46 |
{ type: "text" }, |
| 47 |
null, |
| 48 |
{ type: "text" }, |
| 49 |
{ type: "text" }, |
| 50 |
{ type: "text" }, |
| 51 |
{ type: "text" }, |
| 52 |
null, |
| 53 |
null |
| 54 |
] |
| 55 |
}); |
| 56 |
|
| 38 |
var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, { |
57 |
var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 39 |
"bStateSave": true, |
58 |
"bStateSave": true, |
| 40 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
59 |
"iCookieDuration": 60*60*24*1000, // 1000 days |
| 41 |
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], |
60 |
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], |
| 42 |
"aoColumnDefs": [ |
61 |
"aoColumnDefs": [ |
| 43 |
{ "aTargets": [ 3, -1 ], "bSortable": false, "bSearchable": false }, |
62 |
{ "aTargets": [ 3, -1 ], "bSortable": false, "bSearchable": false }, |
| 44 |
], |
63 |
], |
|
Lines 55-66
Link Here
|
| 55 |
], |
74 |
], |
| 56 |
"sPaginationType": "four_button" |
75 |
"sPaginationType": "four_button" |
| 57 |
} ) ); |
76 |
} ) ); |
| 58 |
/* |
|
|
| 59 |
$("#pendingt").tablesorter({ |
| 60 |
headers: { 2: { sorter: 'articles' },3: { sorter: false },8:{sorter:false}} |
| 61 |
}); |
| 62 |
*/ |
| 63 |
|
| 64 |
}); |
77 |
}); |
| 65 |
|
78 |
|
| 66 |
// Case-insensitive version of jquery's contains function |
79 |
// Case-insensitive version of jquery's contains function |
|
Lines 165-176
Link Here
|
| 165 |
<p><strong>Invoice number:</strong> [% invoice %] <strong>Received by:</strong> [% loggedinusername %] <strong>On:</strong> [% formatteddatereceived %]</p> |
178 |
<p><strong>Invoice number:</strong> [% invoice %] <strong>Received by:</strong> [% loggedinusername %] <strong>On:</strong> [% formatteddatereceived %]</p> |
| 166 |
</div> |
179 |
</div> |
| 167 |
[% UNLESS (invoiceclosedate) %] |
180 |
[% UNLESS (invoiceclosedate) %] |
| 168 |
<div id="acqui_receive_search"> |
181 |
<div id="acqui_receive_search"> |
| 169 |
<h3>Pending orders</h3> |
182 |
<h3>Pending orders</h3> |
| 170 |
|
183 |
|
| 171 |
[% IF ( loop_orders ) %]<table id="pendingt"> |
184 |
[% IF ( loop_orders ) %] |
| 172 |
<thead> |
185 |
<table id="pendingt"> |
| 173 |
<tr> |
186 |
<thead> |
|
|
187 |
<tr> |
| 188 |
<th>Basket search</th> |
| 189 |
<th>Order line search</th> |
| 190 |
<th>Summary search</th> |
| 191 |
<th> </th> |
| 192 |
<th>Quantity search</th> |
| 193 |
<th>Unit cost search</th> |
| 194 |
<th>Order cost search</th> |
| 195 |
<th>Fund search</th> |
| 196 |
<th> </th> |
| 197 |
<th> </th> |
| 198 |
</tr> |
| 199 |
<tr> |
| 174 |
<th>Basket</th> |
200 |
<th>Basket</th> |
| 175 |
<th>Order line</th> |
201 |
<th>Order line</th> |
| 176 |
<th>Summary</th> |
202 |
<th>Summary</th> |
|
Lines 181-189
Link Here
|
| 181 |
<th>Fund</th> |
207 |
<th>Fund</th> |
| 182 |
<th> </th> |
208 |
<th> </th> |
| 183 |
<th> </th> |
209 |
<th> </th> |
| 184 |
</tr> |
210 |
</tr> |
| 185 |
</thead> |
211 |
</thead> |
| 186 |
<tbody class="filterclass"> |
212 |
<tbody class="filterclass"> |
| 187 |
[% FOREACH loop_order IN loop_orders %] |
213 |
[% FOREACH loop_order IN loop_orders %] |
| 188 |
<tr> |
214 |
<tr> |
| 189 |
<td class="basketfilterclass">[% loop_order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_order.basketno %]">[% loop_order.basketno %]</a>)</td> |
215 |
<td class="basketfilterclass">[% loop_order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_order.basketno %]">[% loop_order.basketno %]</a>)</td> |
|
Lines 238-248
Link Here
|
| 238 |
[% END %] |
264 |
[% END %] |
| 239 |
</td> |
265 |
</td> |
| 240 |
</tr> |
266 |
</tr> |
| 241 |
[% END %] |
267 |
[% END %] |
| 242 |
</tbody> |
268 |
</tbody> |
| 243 |
</table> |
269 |
</table> |
| 244 |
[% ELSE %]There are no pending orders.[% END %] |
270 |
[% ELSE %]There are no pending orders.[% END %] |
| 245 |
</div> |
271 |
</div> |
| 246 |
[% ELSE %] |
272 |
[% ELSE %] |
| 247 |
<p> |
273 |
<p> |
| 248 |
Invoice is closed, so you can't receive orders anymore. |
274 |
Invoice is closed, so you can't receive orders anymore. |
| 249 |
- |
|
|