From 91668881f2f9e897fe33256b0835704d9e861fe3 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 8 Jan 2026 19:14:44 +0000 Subject: [PATCH] Bug 41553: Add fund code to fund pulldown for order editor ( neworderempty.pl ) It's possible to give multiple funds the same name. It would be helpful to have the fund code in the pulldown options to help disambiguate these funds. In addition, spans with classes have been added to both the fund name and the fund code for ease of styling. Test Plan: 1) Create 2 funds with the same name and different fund codes 2) Apply this patch 3) Restart all the things! 4) Create a new order, note the fund code is displayed after the fund name Signed-off-by: David Nind Signed-off-by: Amy Peck --- acqui/neworderempty.pl | 1 + .../intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl index 307c48509e2..28506ed9205 100755 --- a/acqui/neworderempty.pl +++ b/acqui/neworderempty.pl @@ -340,6 +340,7 @@ foreach my $r ( @{$budgets} ) { push @{$budget_loop}, { b_id => $r->{budget_id}, b_txt => $r->{budget_name}, + b_code => $r->{budget_code}, b_sort1_authcat => $r->{'sort1_authcat'}, b_sort2_authcat => $r->{'sort2_authcat'}, b_active => $r->{budget_period_active}, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index 782f0dc2d94..b2fddc450c6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -617,11 +617,11 @@ data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" selected="selected" > - [% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %](inactive)[% END %] + [% level_indent | html %][% budget_loo.b_txt | html %] ([% budget_loo.b_code | html %])[% IF !budget_loo.b_active %](inactive)[% END %] [% ELSE %] [% END %] [% END %] -- 2.39.5