Bugzilla – Attachment 191146 Details for
Bug 41575
Tidy kohaTable block - pos
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41575: Tidy kohaTable - pos/register.tt
9dad5bf.patch (text/plain), 2.25 KB, created by
Jonathan Druart
on 2026-01-09 14:51:20 UTC
(
hide
)
Description:
Bug 41575: Tidy kohaTable - pos/register.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:51:20 UTC
Size:
2.25 KB
patch
obsolete
>From 9dad5bf3eeec13216e65601f8c11e66b4668c497 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 14:25:36 +0100 >Subject: [PATCH] Bug 41575: Tidy kohaTable - pos/register.tt > >--- > .../intranet-tmpl/prog/en/modules/pos/register.tt | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >index a341426eaa1..b1f47f9dfe7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -445,6 +445,13 @@ > [% Asset.js("js/cashup_modal.js") | $raw %] > [% Asset.js("js/modal_printer.js") | $raw %] > [% INCLUDE 'calendar.inc' %] >+ <script> >+ const register = { >+ id: "[% register.id | html %]", >+ description: "[% register.description | html %]", >+ }; >+ </script> >+ > <script> > var sales_table = $("#sales").kohaTable({ > orderFixed: [ 0, 'asc'], >@@ -521,7 +528,7 @@ > win.focus(); > }); > >- var cashups_table_url = "/api/v1/cash_registers/[% register.id | html %]/cashups?"; >+ var cashups_table_url = `/api/v1/cash_registers/${register.id}/cashups?`; > var cashups_table = $("#table_cashups").kohaTable({ > ajax: { > "url": cashups_table_url >@@ -565,7 +572,7 @@ > }, > { > data: function( row, type, val, meta ) { >- var result = '<a class="btn btn-default btn-xs" role="button" data-bs-toggle="modal" data-cashup="'+encodeURIComponent(row.cashup_id)+'" data-register="[% register.description | html %]" href="#cashupSummaryModal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> '+_("Summary")+'</a>\n'; >+ var result = '<a class="btn btn-default btn-xs" role="button" data-bs-toggle="modal" data-cashup="'+encodeURIComponent(row.cashup_id)+'" data-register="${register.description}" href="#cashupSummaryModal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> '+_("Summary")+'</a>\n'; > return result; > }, > searchable: false, >-- >2.43.0 >
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 41575
:
191145
| 191146 |
191147
|
191148