Bugzilla – Attachment 192683 Details for
Bug 41553
Add fund code to the fund dropdown list when adding an item to an order (neworderempty.pl)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41553: Add fund code to fund pulldown for order editor ( neworderempty.pl )
5c91036.patch (text/plain), 3.13 KB, created by
David Nind
on 2026-02-07 21:54:34 UTC
(
hide
)
Description:
Bug 41553: Add fund code to fund pulldown for order editor ( neworderempty.pl )
Filename:
MIME Type:
Creator:
David Nind
Created:
2026-02-07 21:54:34 UTC
Size:
3.13 KB
patch
obsolete
>From 5c9103675314d91bc82abe976d75113380c5172e Mon Sep 17 00:00:00 2001 >From: John Doe <you@example.com> >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 <david@davidnind.com> >--- > 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 307c48509e..28506ed920 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 782f0dc2d9..b2fddc450c 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 %]<span class="budget_name">[% budget_loo.b_txt | html %]</span> <span class="budget_code">([% budget_loo.b_code | html %])</span>[% IF !budget_loo.b_active %](inactive)[% END %] > </option> > [% ELSE %] > <option value="[% budget_loo.b_id | html %]" class="[% bdgclass | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"> >- [% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %](inactive)[% END %] >+ [% level_indent | html %]<span class="budget_name">[% budget_loo.b_txt | html %]</span> <span class="budget_code">([% budget_loo.b_code | html %])</span>[% IF !budget_loo.b_active %](inactive)[% END %] > </option> > [% END %] > [% END %] >-- >2.39.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41553
:
191035
|
191036
|
192683
|
192832
|
192833
|
193154
|
193155