Lines 9-15
Link Here
|
9 |
|
9 |
|
10 |
<script type="text/javascript"> |
10 |
<script type="text/javascript"> |
11 |
//<![CDATA[ |
11 |
//<![CDATA[ |
12 |
function updateColumnsVisibility(visible) { |
12 |
function updatePricesColumnsVisibility(visible) { |
13 |
if ( visible ) { |
13 |
if ( visible ) { |
14 |
$("table .gste, .gsti").show(); |
14 |
$("table .gste, .gsti").show(); |
15 |
} else { |
15 |
} else { |
Lines 21-33
Link Here
|
21 |
} |
21 |
} |
22 |
} |
22 |
} |
23 |
|
23 |
|
|
|
24 |
function updateStatisticsColumnsVisibility(visible) { |
25 |
if ( visible ) { |
26 |
$("table .statistics").show(); |
27 |
} else { |
28 |
[% IF ( listincgst ) %] |
29 |
$("table .statistics").hide(); |
30 |
[% ELSE %] |
31 |
$("table .statistics").hide(); |
32 |
[% END %] |
33 |
} |
34 |
} |
35 |
|
24 |
$(document).ready(function() { |
36 |
$(document).ready(function() { |
25 |
$("#show_all_details").click(function(){ |
37 |
$("#show_all_prices").click(function(){ |
26 |
updateColumnsVisibility($(this+":checked").val()); |
38 |
updatePricesColumnsVisibility($(this+":checked").val()); |
27 |
}); |
39 |
}); |
28 |
|
40 |
|
29 |
$("#show_all_details").attr('checked', false); |
41 |
$("#show_all_prices").attr('checked', false); |
30 |
updateColumnsVisibility(false); |
42 |
updatePricesColumnsVisibility(false); |
|
|
43 |
|
44 |
$("#show_statistics").click(function(){ |
45 |
updateStatisticsColumnsVisibility($(this+":checked").val()); |
46 |
}); |
47 |
|
48 |
$("#show_statistics").attr('checked', false); |
49 |
updateStatisticsColumnsVisibility(false); |
31 |
}); |
50 |
}); |
32 |
//]]> |
51 |
//]]> |
33 |
</script> |
52 |
</script> |
Lines 277-285
Link Here
|
277 |
<div id="acqui_basket_content" class="yui-g"> |
296 |
<div id="acqui_basket_content" class="yui-g"> |
278 |
[% IF ( books_loop ) %] |
297 |
[% IF ( books_loop ) %] |
279 |
<h2>Orders</h2> |
298 |
<h2>Orders</h2> |
280 |
<label for="show_all_details"> |
299 |
<label for="show_all_prices"> |
281 |
<input type="checkbox" style="vertical-align: middle;" id="show_all_details" /> |
300 |
<input type="checkbox" style="vertical-align: middle;" id="show_all_prices" /> |
282 |
Show all details |
301 |
Show all prices |
|
|
302 |
</label> |
303 |
<label for="show_statistics"> |
304 |
<input type="checkbox" style="vertical-align: middle;" id="show_statistics" /> |
305 |
Show statistical fields |
283 |
</label> |
306 |
</label> |
284 |
<table id="orders"> |
307 |
<table id="orders"> |
285 |
<thead> |
308 |
<thead> |
Lines 295-300
Link Here
|
295 |
<th>GST %</th> |
318 |
<th>GST %</th> |
296 |
<th>GST</th> |
319 |
<th>GST</th> |
297 |
<th>Fund</th> |
320 |
<th>Fund</th> |
|
|
321 |
<th class="statistics">Statistic 1</th> |
322 |
<th class="statistics">Statistic 2</th> |
298 |
[% IF ( active ) %] |
323 |
[% IF ( active ) %] |
299 |
[% UNLESS ( closedate ) %] |
324 |
[% UNLESS ( closedate ) %] |
300 |
<th>Modify</th> |
325 |
<th>Modify</th> |
Lines 314-319
Link Here
|
314 |
<th/> |
339 |
<th/> |
315 |
<th>[% foot_loo.gstvalue %]</th> |
340 |
<th>[% foot_loo.gstvalue %]</th> |
316 |
<th/> |
341 |
<th/> |
|
|
342 |
<th class="statistics" /> |
343 |
<th class="statistics" /> |
317 |
[% IF ( active ) %] |
344 |
[% IF ( active ) %] |
318 |
[% UNLESS ( closedate ) %] |
345 |
[% UNLESS ( closedate ) %] |
319 |
<th> </th> |
346 |
<th> </th> |
Lines 331-336
Link Here
|
331 |
<th/> |
358 |
<th/> |
332 |
<th>[% total_gstvalue %]</th> |
359 |
<th>[% total_gstvalue %]</th> |
333 |
<th/> |
360 |
<th/> |
|
|
361 |
<th class="statistics" /> |
362 |
<th class="statistics" /> |
334 |
[% IF ( active ) %] |
363 |
[% IF ( active ) %] |
335 |
[% UNLESS ( closedate ) %] |
364 |
[% UNLESS ( closedate ) %] |
336 |
<th> </th> |
365 |
<th> </th> |
Lines 373-378
Link Here
|
373 |
<td class="number [% IF books_loo.gstgsti.search('^0') %]error[% END %]">[% books_loo.gstgsti %]</td> |
402 |
<td class="number [% IF books_loo.gstgsti.search('^0') %]error[% END %]">[% books_loo.gstgsti %]</td> |
374 |
<td class="number [% IF books_loo.gstvalue.search('^0') %]error[% END %]">[% books_loo.gstvalue %]</td> |
403 |
<td class="number [% IF books_loo.gstvalue.search('^0') %]error[% END %]">[% books_loo.gstvalue %]</td> |
375 |
<td>[% books_loo.budget_name %]</td> |
404 |
<td>[% books_loo.budget_name %]</td> |
|
|
405 |
<td class="statistics">[% books_loo.sort1 %]</td> |
406 |
<td class="statistics">[% books_loo.sort2 %]</td> |
376 |
[% IF ( active ) %] |
407 |
[% IF ( active ) %] |
377 |
[% UNLESS ( closedate ) %] |
408 |
[% UNLESS ( closedate ) %] |
378 |
<td> |
409 |
<td> |
Lines 429-434
Link Here
|
429 |
<th>GST %</th> |
460 |
<th>GST %</th> |
430 |
<th>GST</th> |
461 |
<th>GST</th> |
431 |
<th>Fund</th> |
462 |
<th>Fund</th> |
|
|
463 |
<th class="statistic">Statistic 1</th> |
464 |
<th class="statistic">Statistic 2</th> |
432 |
</tr> |
465 |
</tr> |
433 |
</thead> |
466 |
</thead> |
434 |
<tbody> |
467 |
<tbody> |
Lines 459-465
Link Here
|
459 |
<td class="number gsti">[% order.totalgsti %]</td> |
492 |
<td class="number gsti">[% order.totalgsti %]</td> |
460 |
<td class="number">[% order.gstgsti %]</td> |
493 |
<td class="number">[% order.gstgsti %]</td> |
461 |
<td class="number">[% order.gstvalue %]</td> |
494 |
<td class="number">[% order.gstvalue %]</td> |
462 |
<td>[% order.budget_name %] |
495 |
<td>[% order.budget_name %]</td> |
|
|
496 |
<td class="statistic">[% order.sort1 %]</td> |
497 |
<td class="statistic">[% order.sort2 %]</td> |
463 |
</tr> |
498 |
</tr> |
464 |
[% END %] |
499 |
[% END %] |
465 |
</tbody> |
500 |
</tbody> |
466 |
- |
|
|