Bugzilla – Attachment 191295 Details for
Bug 41563
Tidy kohaTable block - acqui
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41563: Tidy kohaTable - acqui/invoice.tt
Bug-41563-Tidy-kohaTable---acquiinvoicett.patch (text/plain), 2.25 KB, created by
Owen Leonard
on 2026-01-12 16:55:38 UTC
(
hide
)
Description:
Bug 41563: Tidy kohaTable - acqui/invoice.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-12 16:55:38 UTC
Size:
2.25 KB
patch
obsolete
>From 77993cbe328a8fbc6e5a1ecb14c68685fbaf53c2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 6 Jan 2026 16:27:54 +0100 >Subject: [PATCH] Bug 41563: Tidy kohaTable - acqui/invoice.tt > >See bug 41324 comment 6 >1. Variable serialization > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/acqui/invoice.tt | 18 +++++++++++++----- > 1 file changed, 13 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >index 58a38e5bd41..abf7218fc2a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >@@ -576,16 +576,24 @@ > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'datatables.inc' %] > [% Asset.js("js/modals/edifact-modal.js") | $raw %] >+ <script> >+ addPrefs({ >+ AcqEnableFiles: [% Koha.Preference('AcqEnableFiles') ? 1 : 0 | html %], >+ }); >+ const invoiceincgst = [% invoiceincgst ? 1 : 0 | html %]; >+ const has_files = [% files ? 1 : 0 | html %]; >+ </script> >+ > <script> > function updateColumnsVisibility(visible) { > if ( visible ) { > $("table .tax_excluded, .tax_included").show(); > } else { >- [% IF ( invoiceincgst ) %] >+ if (invoiceincgst){ > $("table .tax_excluded").hide(); >- [% ELSE %] >+ } else { > $("table .tax_included").hide(); >- [% END %] >+ } > } > } > >@@ -596,14 +604,14 @@ > searching: false, > dom: "t", > }); >- [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %] >+ if (prefs.AcqEnableFiles && has_files){ > $("#invoice_files_table").kohaTable({ > info: false, > paging: false, > searching: false, > dom: "t", > }); >- [% END %] >+ } > $("#show_all_details").click(function(){ > updateColumnsVisibility( $(this).is(":checked") ); > }); >-- >2.39.5
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 41563
:
191069
|
191070
|
191071
|
191072
|
191073
|
191074
|
191075
|
191076
|
191077
|
191078
|
191079
|
191080
|
191290
|
191291
|
191292
|
191293
|
191294
| 191295 |
191296
|
191297
|
191298
|
191299
|
191300
|
191301
|
191302
|
191303