Bug 23929: [20.05.x] Invoice adjustments should filter inactive funds
authorBlou <blou@inlibro.com>
Tue, 26 Jan 2021 20:36:31 +0000 (15:36 -0500)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 22 Mar 2021 20:15:08 +0000 (20:15 +0000)
commita690d1b777ef854bc8a10752ce52e21cf5dd285a
tree2759b9aa15a6050c34574e481caca36c49cf4c19
parent547198124ce0df3c91c576109f4476777e00441a
Bug 23929: [20.05.x] Invoice adjustments should filter inactive funds

Looking at invoice details, this makes the Adjustments Fund dropdown act
exactly like the Shipping Fund dropdown above, with a Show inactive
checkbox to help filter (by default) the inactive funds out of the list.

Test plan:
0) requires a database with inactive (old) funds along with active ones.
1) Go to invoice details page
2) Click "Add adjustment"
3) Open the drop down beside the Fund label, you should see EVERY fund in database.
4) Compare with behavior of Shipping fund dropdown above.  Not every fund is listed there
5) Apply patch
6) Now behavior is the same, only active fund are listed by default.
7) click "Show inactive" checkbox and see all the funds in the dropdown.

Signed-off-by: Sonia BOUIS <sonia.bouis@univ-lyon3.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt