]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jul 2020 15:44:27 +0000 (17:44 +0200)
commit8ecaedc22db5a25db6ffa98e6a7fc2e7039656c7
tree022a2b055439ecefafeebd80a4958f474591ccdb
parentab015f04dcd4956ca1ccd610d085e8b0c17ca733
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>
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