Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes
Nick Clemens c61c182fda Bug 34768: Remove checkbox column from relatives fines on OPAC
When a patron has a guarantee and can see their fines on the opac and
an opac payment plugin is enabled there is an error on the 'Charges'
tab.

The table uses a 'COLSPAN' variable which is set to 5 or 6 depending on
if OPAC payments are enabled. The guarantees table has one less column
than the patron's however, so it is going out of range and causing a JS
error. Additionally, we are adding a column to the child's table which
is not used as their fines cannot be selected for payment at this time.

This patch removes the checkbox column and sets the colspan directly to
4

I also fix an issue where the table is not being set as we need to
reference the patron object in the guarantor info to obtain the id.

To test:
1 - Set system preference: AllowStaffToSetFinesVisibilityForGuarantor to
    allow
2 - Find a patron
3 - Add some fines to their account
4 - Install and enable an opac payment plugin
    (https://github.com/bywatersolutions/koha-plugin-pay-via-govolution
    for example)
5 - Sign in to OPAC as borrower
6 - Go to 'Charges' tab
7 - Select a fee
8 - Confirm 'Make payment' button enabled and 'amount to pay' is
    updated
9 - Add a guarantee to patron in staff interface
10 - Set 'Show charges to guarantors' to 'Yes'
11 - Add and pay a fine for the child
12 - View guarantor account on the OPAC
13 - Confirm you now see child's charges
14 - Confirm selecting your own fees does not enable the button or
     update amount to pay
15 - Note JS error in console
16 - Apply patch
17 - Reload patrons page
18 - Confirm the table loads correctly (no JS error)
19 - Confirm selecting a fine updates the total and enables button
20 - Disable the payment plugin
21 - Confirm the display is still correct, no errors

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a3e40408ea)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-09-17 21:50:45 -10:00
..
modals Bug 31028: Add feedback to the patron on submission 2023-03-06 11:23:17 -03:00
account-table.inc Bug 34768: Remove checkbox column from relatives fines on OPAC 2023-09-17 21:50:45 -10:00
accounts.inc Bug 26403: (QA follow-up) Add missing debit and credit types to includes 2023-05-10 15:26:15 -03:00
authorities-search-results.inc
authority-identifiers.inc
av-build-dropbox.inc
biblio-title-head.inc
biblio-title.inc Bug 33946: (QA follow-up) Add spans and classes for styling and translatability 2023-07-18 12:33:55 +01:00
bodytag.inc
calendar.inc Bug 34038: Fix incorrect use of __() in .tt and .inc files 2023-09-08 09:33:19 -10:00
columns_settings.inc
datatables.inc Bug 32341: Some OPAC tables are not displayed well in mobile mode 2023-07-12 07:56:39 +01:00
date-format.inc
display-library-address.inc
doc-head-close.inc Bug 32341: (Fix) Changing the placement of the button 2023-07-12 07:56:39 +01:00
doc-head-open.inc
greybox.inc Bug 32998: Consolidate opac-tmpl/lib and opac-tmpl/bootstrap/lib 2023-04-13 11:47:57 -03:00
holds-table.inc Bug 32341: (Fix) Changing the placement of the button 2023-07-12 07:56:39 +01:00
html_helpers.inc Bug 33893: Use template wrapper for tabs: OPAC checkout history 2023-07-18 11:01:59 +01:00
i18n.inc
ill-availability-table.inc
item-status.inc Bug 33933: Only show use restriction once on OPAC detail page 2023-07-18 11:07:57 +01:00
js-date-format.inc Bug 30310: Adjust js-date-format 2023-01-31 10:19:45 -03:00
masthead-langmenu.inc Bug 34646: Fix two attributes class in OPAC masthead-langmenu.inc 2023-09-07 19:54:28 -10:00
masthead-sci.inc
masthead-sco.inc
masthead.inc Bug 27496: Accessibility: Navigation buttons are poorly described by screen readers 2023-08-29 20:34:00 -10:00
navigation.inc
opac-authorities.inc
opac-bottom.inc Bug 33697: Remove RecordedBooks (rbdigital) integration 2023-06-09 11:22:15 -03:00
opac-detail-sidebar.inc Bug 31028: Add ability to report catalog concerns from the OPAC 2023-03-06 11:23:17 -03:00
opac-facets.inc Bug 33140: Use facet label value for mouseover text on facet removal link 2023-08-17 10:18:43 -10:00
opac-note.inc Bug 12029: Ability for patrons to dismiss OPAC messages 2023-04-20 15:48:46 -03:00
opac-topissues.inc
openlibrary-readapi.inc
overdrive-checkout.inc
overdrive-login.inc Bug 33343: Make use of the 'autocomplete=off' attribute on password fields 2023-06-09 12:04:56 -03:00
page-numbers.inc Bug 33767: Fix incorrect heading in page-numbers.inc 2023-05-19 09:20:54 -03:00
password_check.inc
patron-title.inc
resort_form.inc
serial-status.inc Bug 32752: Add new status Circulating, Out for binding, and Bound to includes 2023-05-15 18:24:08 -03:00
shelfbrowser.inc Bug 29993: Show Syndetics covers when using shelfbrowser controls 2023-05-18 11:35:13 -03:00
slip-print.inc
subtypes_unimarc.inc
title-actions-menu.inc
user-star-ratings.inc
usermenu.inc Bug 33197: Rename GDPR_Policy system preference 2023-05-05 10:18:54 -03:00
validator-strings.inc
xslt-handler.inc