View | Details | Raw Unified | Return to bug 41575
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-3 / +5 lines)
Lines 576-582 Link Here
576
                            var result =
576
                            var result =
577
                                '<a class="btn btn-default btn-xs" role="button" data-bs-toggle="modal" data-cashup="' +
577
                                '<a class="btn btn-default btn-xs" role="button" data-bs-toggle="modal" data-cashup="' +
578
                                encodeURIComponent(row.cashup_id) +
578
                                encodeURIComponent(row.cashup_id) +
579
                                '" data-register="${register.description}" href="#cashupSummaryModal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> ' +
579
                                '" data-register="' +
580
                                register.description +
581
                                '" href="#cashupSummaryModal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> ' +
580
                                _("Summary") +
582
                                _("Summary") +
581
                                "</a>\n";
583
                                "</a>\n";
582
                            return result;
584
                            return result;
Lines 590-599 Link Here
590
            1
592
            1
591
        );
593
        );
592
594
593
        $(document).ready(function() {
595
        $(document).ready(function () {
594
            // Check for cashup hash in URL
596
            // Check for cashup hash in URL
595
            let hash = window.location.hash;
597
            let hash = window.location.hash;
596
            if (hash && hash.startsWith('#cashup-')) {
598
            if (hash && hash.startsWith("#cashup-")) {
597
                let cashup_id = hash.substring(8); // Remove '#cashup-' prefix
599
                let cashup_id = hash.substring(8); // Remove '#cashup-' prefix
598
                let $button = $('[data-cashup="' + cashup_id + '"]');
600
                let $button = $('[data-cashup="' + cashup_id + '"]');
599
                if ($button.length) {
601
                if ($button.length) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt (-2 / +1 lines)
Lines 245-251 Link Here
245
245
246
            // Check for cashup hash in URL
246
            // Check for cashup hash in URL
247
            let hash = window.location.hash;
247
            let hash = window.location.hash;
248
            if (hash && hash.startsWith('#cashup-')) {
248
            if (hash && hash.startsWith("#cashup-")) {
249
                let cashup_id = hash.substring(8); // Remove '#cashup-' prefix
249
                let cashup_id = hash.substring(8); // Remove '#cashup-' prefix
250
                let $button = $('[data-cashup="' + cashup_id + '"]');
250
                let $button = $('[data-cashup="' + cashup_id + '"]');
251
                if ($button.length) {
251
                if ($button.length) {
252
- 

Return to bug 41575