LP#1175293 Use filtered fund dropdown in funding source interface user/csharp/lp1175293_fund_dropdown_fix_signoff
authorDan Wells <dbw2@calvin.edu>
Wed, 2 Nov 2016 18:35:16 +0000 (14:35 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 3 Nov 2016 14:45:26 +0000 (10:45 -0400)
commite40079af41def921ab134e84a411869ab3b0abe9
tree829b5788703b544ee9098313406ee264ab4c0527
parent59503ede86bb06c97319f12e96bc30604264307d
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 <dbw2@calvin.edu>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/templates/acq/funding_source/view.tt2
Open-ILS/web/js/ui/default/acq/financial/view_funding_source.js