LP#1175293 Use filtered fund dropdown in funding source interface collab/dbwells/lp1175293_fund_dropdown_fix
authorDan Wells <dbw2@calvin.edu>
Wed, 2 Nov 2016 18:35:16 +0000 (14:35 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 2 Nov 2016 18:41:24 +0000 (14:41 -0400)
commit4d031e22bf106e87d66353aa697274dd300efcbc
treee5bb9a10caa19d1a640cf92e8310615ae2fbb4e8
parentc6f486fd1bce40f722b2072cef69e59ac6df678b
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>
Open-ILS/src/templates/acq/funding_source/view.tt2
Open-ILS/web/js/ui/default/acq/financial/view_funding_source.js