From 2e457782fc2fe57482a6396af633036c0fa434e2 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 Signed-off-by: Phil Ringnalda Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss | 7 +++++++ .../intranet-tmpl/prog/en/modules/members/pay.tt | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss index c3d1297bff2..ae6839e02fc 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 { 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 3510d207b26..c4ab9855834 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