]> git.koha-community.org Git - koha.git/commit
Bug 11644: fix occasional failure to update fund amount due to floating-point math
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 30 Jan 2014 17:39:19 +0000 (12:39 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 19 Feb 2014 20:04:19 +0000 (20:04 +0000)
commitba689152e431217c8dd02d6ce0b8d14ae8d9f5da
tree9b8cde475a9ff949e5678fcd5203815b7f3cd819
parenta97f21ad3ba53ecd30089c7f802ab9b3ad430806
Bug 11644: fix occasional failure to update fund amount due to floating-point math

When attempting to update a fund, if the amount unalloccated for the
fund is equal to the total, you can be prevented from saving. This is
due to imprecise floating point number comparison in
check_parent_total.pl

Test Plan:
1) Create a fund where the amount unallocated is equal to the amount
   unallocated for the budget period
2) Edit the fund, attempt to change the name of the fund
3) Note you recieve an error and cannot save
4) Apply this patch
5) Repeat step 2
6) Note you can now update the fund

Signed-off-by: Sean McGarvey <smcgarvey@pascocountyfl.net>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
admin/check_parent_total.pl