Bug 23929: Invoice adjustments should filter inactive funds
authorBlou <blou@inlibro.com>
Tue, 26 Jan 2021 20:36:31 +0000 (15:36 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 25 Feb 2021 09:33:39 +0000 (10:33 +0100)
commit37e84301aaa5fd99a44793243eabae944895c952
tree298a5d551cfccfc7198a31b5339933c2f5678aba
parent2b021df3e2630d98ed6a72f32d3e7d63c8159aa6
Bug 23929: 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: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit bdfb78a69a1f78488b800bd38392c60812717cc7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt