]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Jun 2014 11:48:33 +0000 (07:48 -0400)
commit254bd580ace37b434dfd1b7acc7766b86f79eabb
treed7e613baf8953e827aa181e8cc1be3b51c14cb71
parente2f4b2e01f50071f6b812bdfdcdd8b7a03b40070
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>
(cherry picked from commit ba689152e431217c8dd02d6ce0b8d14ae8d9f5da)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 984758cd3c76276366be05149324df6a17916cad)
admin/check_parent_total.pl