From ce26db3bf33c2fd0298e3e4e515ad62806b6cd01 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 --- 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 %] -- 2.39.5