Bugzilla – Attachment 191036 Details for
Bug 41553
Add fund code to fund pulldown for order editor ( 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 )
Bug-41553-Add-fund-code-to-fund-pulldown-for-order.patch (text/plain), 3.10 KB, created by
Kyle M Hall (khall)
on 2026-01-08 19:30:44 UTC
(
hide
)
Description:
Bug 41553: Add fund code to fund pulldown for order editor ( neworderempty.pl )
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2026-01-08 19:30:44 UTC
Size:
3.10 KB
patch
obsolete
>From 42901657a408d5869837e8fdf7ee08740f959daf 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 >--- > 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 efbec39ac0a..012f7389344 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 %]<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.50.1 (Apple Git-155)
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