From 4c490dafe1126a116bf53f04ca19907d4270b1db Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Wed, 2 Nov 2016 14:35:16 -0400 Subject: [PATCH] LP#1175293 Use filtered fund dropdown in funding source interface The exising interface for allocating to funds from a funding source view lists all funds by code only. Since many (most?) orgs reuse fund codes year to year, you eventually end up with a bunch of dupes you cannot tell apart. Let's "borrow" an AutoFieldWidget to do the heavy lifting of creating a filtered list of active funds, and include the year for further user validation. This is inspired by a few other fund dropdowns, but may not be the best overall solution. Signed-off-by: Dan Wells Signed-off-by: Chris Sharp Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/acq/funding_source/view.tt2 | 17 +++-------------- .../js/ui/default/acq/financial/view_funding_source.js | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/Open-ILS/src/templates/acq/funding_source/view.tt2 b/Open-ILS/src/templates/acq/funding_source/view.tt2 index 61e1903511..e37d58a0e1 100644 --- a/Open-ILS/src/templates/acq/funding_source/view.tt2 +++ b/Open-ILS/src/templates/acq/funding_source/view.tt2 @@ -35,22 +35,11 @@
[% l('Allocate to Fund') %]
- - + @@ -61,7 +50,7 @@
- - +