Bugzilla – Attachment 59202 Details for
Bug 9692
Add a checkbox to display statistical fields in basket.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9692: [FOLLOWUP] Add a checkbox to display statistical fields in basket.tt
Bug-9692-FOLLOWUP-Add-a-checkbox-to-display-statis.patch (text/plain), 4.06 KB, created by
Emma
on 2017-01-19 02:59:08 UTC
(
hide
)
Description:
Bug 9692: [FOLLOWUP] Add a checkbox to display statistical fields in basket.tt
Filename:
MIME Type:
Creator:
Emma
Created:
2017-01-19 02:59:08 UTC
Size:
4.06 KB
patch
obsolete
>From 9538cd656d4190b61d7be5ffe0d55dd0a6a6ca74 Mon Sep 17 00:00:00 2001 >From: Your Full Name <emma.nakamura.smith@gmail.com> >Date: Thu, 19 Jan 2017 02:57:39 +0000 >Subject: [PATCH] Bug 9692: [FOLLOWUP] Add a checkbox to display statistical > fields in basket.tt > >--- > .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 57 ++++++++++------------ > 1 file changed, 25 insertions(+), 32 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >index 20b98d3..5f3b445 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >@@ -23,26 +23,8 @@ > } > } > >- function updateStatisticsColumnsVisibility(visible) { >- if ( visible ) { >- $("table .statistics").show(); >- } else { >- [% IF ( listincgst ) %] >- $("table .statistics").hide(); >- [% ELSE %] >- $("table .statistics").hide(); >- [% END %] >- } >- } >- > $(document).ready(function() { > $('#toolbar').fixFloat(); >- $("#show_all_details").click(function(){ >- updateColumnsVisibility($(this).is(":checked")); >- }); >- >- $("#show_all_details").prop('checked', false); >- updateColumnsVisibility(false); > [% UNLESS ( closedate ) %] > $('#addtoBasket').on('show', function () { > $(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML); >@@ -63,19 +45,30 @@ > e.preventDefault(); > transfer_order_popup( $(this).data("ordernumber")); > }); >- $("#show_all_prices").click(function(){ >- updatePricesColumnsVisibility($(this+":checked").val()); >- }); >- >- $("#show_all_prices").attr('checked', false); >- updatePricesColumnsVisibility(false); > >- $("#show_statistics").click(function(){ >- updateStatisticsColumnsVisibility($(this+":checked").val()); >+ $("table .statistics").hide(); >+ $("table .tax_included").hide(); >+ >+ $("#show_all_prices").on("click",function(){ >+ if ($("#show_all_prices").is(":checked") ){ >+ $("table .tax_included").show(); >+ $("table .tax_excluded").show(); >+ } else { >+ [% IF ( listincgst ) %] >+ $("table .tax_excluded").hide(); >+ [% ELSE %] >+ $("table .tax_included").hide(); >+ [% END %] >+ } > }); > >- $("#show_statistics").attr('checked', false); >- updateStatisticsColumnsVisibility(false); >+ $("#show_statistics").on("click",function(){ >+ if ($("#show_statistics").is(":checked") ){ >+ $("table .statistics").show(); >+ } else { >+ $("table .statistics").hide(); >+ } >+ }); > }); > //]]> > </script> >@@ -528,8 +521,8 @@ > <th>[% foot_loo.tax_value | $Price %]</th> > <th class="gste">[% foot_loo.totalgste %]</th> > <th class="gsti">[% foot_loo.totalgsti %]</th> >- <th class="statistics">Statistic 1</th> >- <th class="statistics">Statistic 2</th> >+ <th class="statistics"> </th> >+ <th class="statistics"> </th> > [% IF ( active ) %] > [% UNLESS ( closedate ) %] > <th> </th> >@@ -552,8 +545,8 @@ > <th>[% total_tax_value | $Price %]</th> > <th class="gste">[% foot_loo.totalgste %]</th> > <th class="gsti">[% foot_loo.totalgsti %]</th> >- <th class="statistics">Statistic 1</th> >- <th class="statistics">Statistic 2</th> >+ <th class="statistics"> </th> >+ <th class="statistics"> </th> > > [% IF ( active ) %] > [% UNLESS ( closedate ) %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9692
:
15609
|
16265
|
59202
|
59283