From c93d6252f2a0cfab6f6ad3452a89157cbca93ede Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 24 Jan 2025 15:58:32 +0000 Subject: [PATCH] Bug 38964: Fix column span in footer of staff interface account payment page This patch fixes the column span in the table footer rows of the account payment page (pay.tt). I've also added a couple of lines of CSS to style the footer rows. To test, apply the patch and rebuild the staff interface CSS. - In the staff client, locate a patron with charges. - If necessary, go to a patrons "Accounting" tab and use the "Create manual invoice" page to add one or more charges to the account. - Under the "Make a payment" tab there should be one or more footer rows including "Total due." The "Total due" cell should be aligned right, with a grey background. Sponsored-by: Athens County Public Libraries --- koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss | 9 ++++++++- .../intranet-tmpl/prog/en/modules/members/pay.tt | 12 ++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss index c3d1297bff..9f60c460d8 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss @@ -95,6 +95,13 @@ table { th { padding: .5em; } + + & > tr { + & th[scope="row"] { + background-color: $table-odd-row; + text-align: right; + } + } } thead { @@ -113,7 +120,7 @@ table { } } - & > tr { + & > tr { th { padding: .5em; text-align: center; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt index 918afe0890..c52d5b1535 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -179,16 +179,20 @@ - Total due: + Total due: [% total | $Price %] [% IF outstanding_credits.total_outstanding < 0 %] - Outstanding credits could be applied: - + Outstanding credits could be applied: + - Total due if credit applied: + Total due if credit applied: [% total + outstanding_credits.total_outstanding | $Price %] [% END %] -- 2.39.5