]> git.koha-community.org Git - koha.git/commit
Bug 21268: Don't remove 0 allocated funds from fund list
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 28 Jul 2020 07:23:35 +0000 (09:23 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 6 Aug 2020 20:05:30 +0000 (20:05 +0000)
commitfe19488c2299c46fc50608d15bb30017cd720ec5
treeeecfc9bae3ddaee13893e1f3da41e9a4981331d1
parent6ad9baace2099650a14c0ee478130ca3c01c673a
Bug 21268: Don't remove 0 allocated funds from fund list

If a fund is created with a amount of 0, it will not appear in the fund
list (when a new order is created for instance).
0 allocated funds can be used to track donations and other situations
where there is not an expected amount for the year.

Test plan:
0. Do not apply the patch
1. Create 1 active and 1 inactive budgets
2. Create some funds for each budgets, with amount > 0 and amount == 0
3. Add orders to basket
=> Note that the funds with amount == 0 are not displayed
4. Apply the patch
5. Add orders to basket (using the different possible ways we have)
=> Note that the funds with amount == 0 are displayed

This change is applied to the different views of the acquisition module.

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 8ecaedc22db5a25db6ffa98e6a7fc2e7039656c7)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
acqui/addorderiso2709.pl
acqui/basket.pl
acqui/booksellers.pl
acqui/duplicate_orders.pl
acqui/invoice.pl
acqui/neworderempty.pl
acqui/orderreceive.pl
acqui/parcels.pl