From ea3e032c1e0b1ff7d6c7dd9a5a1a0fd7fcd0ac9a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 19 Dec 2024 13:03:50 +0000 Subject: [PATCH] Bug 38753: Missing table cells breaks OPAC charges table This patch adds a couple of instances of the empty cell required by DataTables to enable responsive behavior. The mismatch between table headers and table cells causes DataTables to fail. To test you must log in to the OPAC as a user with charges and credit. - Apply the patch and go to Patrons in the staff interface. - Find and view a patron record. Click "Accounting" in the sidebar menu. - Use the "Create manual invoice" and "Create manual credit" tabs to create at least one charge and a credit which is greater than the charges. - Log in to the OPAC as that user and go to their Charges tab. - The charges table shoud look correct, with DataTables sorting indicators on the table headers to indicate that DataTables is working. Sponsored-by: Athens County Public Libraries Signed-off-by: Roman Dolny Signed-off-by: Katrin Fischer (cherry picked from commit b49cac544fdd9c69f0e9436aae3bfb0367f7a4b3) Signed-off-by: Paul Derscheid --- koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc index 04e37d1197..afff0d8724 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc @@ -74,11 +74,13 @@ [% outstanding_credit.amount * -1 | $Price %] [% outstanding_credit.amountoutstanding * -1 | $Price %] + [% END %] Total due if credit(s) applied: [% total + outstanding_credits.total_outstanding | $Price %] + [% END %]