From 2b7d3cb42cb813745204c6ddaec2240976a7b6fc Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 2 Dec 2022 00:18:59 +0000 Subject: [PATCH] Bug 32382: Fix alignment on invoice summary page To test: 1. Apply patch 2. Have some funds from budgets that are both active and inactive 3. Receive a basket and click 'Finish receiving' to get to the invoice page 4. Look at the Fund/Show inactive line and make sure it is aligned right 5. With some inactive funds click 'Show inactive' and make sure they appear in this dropdown 6. Click 'Add an adjustment'. Make sure the Fund/Show inactive line looks correct there as well/ 7. Make an adjustment and click 'Update adjustments' make sure the line also looks right in the table that appears. 8. Inside that table make sure you can click the 'Show inactive' checkbox and the inactive budgets appears. Note: Some of the HTML was ouside of the HTML body, so I moved it into the HTML body so it will be valid. Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer --- .../prog/en/modules/acqui/invoice.tt | 90 +++++++++---------- 1 file changed, 44 insertions(+), 46 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt index 534f07d4f2..62f2af7e2a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt @@ -7,57 +7,14 @@ [% USE AuthorisedValues %] [% Asset.css("css/humanmsg.css") | $raw %] - [% BLOCK fund_dropdown %] - - + - [% END %] - - - [% INCLUDE 'doc-head-open.inc' %] Invoice › Acquisitions › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -206,7 +163,7 @@ Note Fund Encumber while invoice open - [% UNLESS readonly %] [% END %] + [% UNLESS readonly %] [% END %] [% total_adj = 0 %] [% FOREACH adjustment IN adjustments %] @@ -486,6 +443,47 @@ + + + + [% MACRO jsinclude BLOCK %] [% Asset.js("js/acquisitions-menu.js") | $raw %] [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] @@ -552,7 +550,7 @@ $('.b_inactive').remove(); $('.showallfunds').click(function() { - var the_dropdown = $(this).parent('span').find('.fund_dropdown'); + var the_dropdown = $(this).siblings('.fund_dropdown'); var selected = the_dropdown.val(); if ($(this).is(":checked")) { the_dropdown.html(disabledBudgetsCopy).val(selected); -- 2.30.2