Bug 15004: Allow to change amounts of duplicated budgets
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 13 Oct 2015 10:37:23 +0000 (12:37 +0200)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 06:05:01 +0000 (06:05 +0000)
commit9c81343bf6d050d34a4d6f15766025434efafb01
tree0a27b6be94a749ba1701400532fc522c8dbdf873
parent3ea6e78909112c4e636e6ad0bc7f593e60b9338a
 Bug 15004: Allow to change amounts of duplicated budgets

When duplicating a budget we now have the possibility to change amounts
of budget and funds by a given percentage.  Additionally, we can
configure how to round the amounts.

Test plan:
1. Create a budget and several funds with different amounts
2. Duplicate it using the 2 new options
3. Check that the amounts are correct

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
  It works exactly as advertised. Was happy to see that decimal point
  can be used: for example, increase a budget by 2.6%, and round the
  amound to 0.5.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
C4/Budgets.pm
admin/aqbudgetperiods.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt
t/db_dependent/Budgets.t