|
Lines 23-48
Link Here
|
| 23 |
} |
23 |
} |
| 24 |
} |
24 |
} |
| 25 |
|
25 |
|
| 26 |
function updateStatisticsColumnsVisibility(visible) { |
|
|
| 27 |
if ( visible ) { |
| 28 |
$("table .statistics").show(); |
| 29 |
} else { |
| 30 |
[% IF ( listincgst ) %] |
| 31 |
$("table .statistics").hide(); |
| 32 |
[% ELSE %] |
| 33 |
$("table .statistics").hide(); |
| 34 |
[% END %] |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
$(document).ready(function() { |
26 |
$(document).ready(function() { |
| 39 |
$('#toolbar').fixFloat(); |
27 |
$('#toolbar').fixFloat(); |
| 40 |
$("#show_all_details").click(function(){ |
|
|
| 41 |
updateColumnsVisibility($(this).is(":checked")); |
| 42 |
}); |
| 43 |
|
| 44 |
$("#show_all_details").prop('checked', false); |
| 45 |
updateColumnsVisibility(false); |
| 46 |
[% UNLESS ( closedate ) %] |
28 |
[% UNLESS ( closedate ) %] |
| 47 |
$('#addtoBasket').on('show', function () { |
29 |
$('#addtoBasket').on('show', function () { |
| 48 |
$(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML); |
30 |
$(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML); |
|
Lines 63-81
Link Here
|
| 63 |
e.preventDefault(); |
45 |
e.preventDefault(); |
| 64 |
transfer_order_popup( $(this).data("ordernumber")); |
46 |
transfer_order_popup( $(this).data("ordernumber")); |
| 65 |
}); |
47 |
}); |
| 66 |
$("#show_all_prices").click(function(){ |
|
|
| 67 |
updatePricesColumnsVisibility($(this+":checked").val()); |
| 68 |
}); |
| 69 |
|
| 70 |
$("#show_all_prices").attr('checked', false); |
| 71 |
updatePricesColumnsVisibility(false); |
| 72 |
|
48 |
|
| 73 |
$("#show_statistics").click(function(){ |
49 |
$("table .statistics").hide(); |
| 74 |
updateStatisticsColumnsVisibility($(this+":checked").val()); |
50 |
$("table .tax_included").hide(); |
|
|
51 |
|
| 52 |
$("#show_all_prices").on("click",function(){ |
| 53 |
if ($("#show_all_prices").is(":checked") ){ |
| 54 |
$("table .tax_included").show(); |
| 55 |
$("table .tax_excluded").show(); |
| 56 |
} else { |
| 57 |
[% IF ( listincgst ) %] |
| 58 |
$("table .tax_excluded").hide(); |
| 59 |
[% ELSE %] |
| 60 |
$("table .tax_included").hide(); |
| 61 |
[% END %] |
| 62 |
} |
| 75 |
}); |
63 |
}); |
| 76 |
|
64 |
|
| 77 |
$("#show_statistics").attr('checked', false); |
65 |
$("#show_statistics").on("click",function(){ |
| 78 |
updateStatisticsColumnsVisibility(false); |
66 |
if ($("#show_statistics").is(":checked") ){ |
|
|
67 |
$("table .statistics").show(); |
| 68 |
} else { |
| 69 |
$("table .statistics").hide(); |
| 70 |
} |
| 71 |
}); |
| 79 |
}); |
72 |
}); |
| 80 |
//]]> |
73 |
//]]> |
| 81 |
</script> |
74 |
</script> |
|
Lines 528-535
Link Here
|
| 528 |
<th>[% foot_loo.tax_value | $Price %]</th> |
521 |
<th>[% foot_loo.tax_value | $Price %]</th> |
| 529 |
<th class="gste">[% foot_loo.totalgste %]</th> |
522 |
<th class="gste">[% foot_loo.totalgste %]</th> |
| 530 |
<th class="gsti">[% foot_loo.totalgsti %]</th> |
523 |
<th class="gsti">[% foot_loo.totalgsti %]</th> |
| 531 |
<th class="statistics">Statistic 1</th> |
524 |
<th class="statistics"> </th> |
| 532 |
<th class="statistics">Statistic 2</th> |
525 |
<th class="statistics"> </th> |
| 533 |
[% IF ( active ) %] |
526 |
[% IF ( active ) %] |
| 534 |
[% UNLESS ( closedate ) %] |
527 |
[% UNLESS ( closedate ) %] |
| 535 |
<th> </th> |
528 |
<th> </th> |
|
Lines 552-559
Link Here
|
| 552 |
<th>[% total_tax_value | $Price %]</th> |
545 |
<th>[% total_tax_value | $Price %]</th> |
| 553 |
<th class="gste">[% foot_loo.totalgste %]</th> |
546 |
<th class="gste">[% foot_loo.totalgste %]</th> |
| 554 |
<th class="gsti">[% foot_loo.totalgsti %]</th> |
547 |
<th class="gsti">[% foot_loo.totalgsti %]</th> |
| 555 |
<th class="statistics">Statistic 1</th> |
548 |
<th class="statistics"> </th> |
| 556 |
<th class="statistics">Statistic 2</th> |
549 |
<th class="statistics"> </th> |
| 557 |
|
550 |
|
| 558 |
[% IF ( active ) %] |
551 |
[% IF ( active ) %] |
| 559 |
[% UNLESS ( closedate ) %] |
552 |
[% UNLESS ( closedate ) %] |
| 560 |
- |
|
|