]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 19 May 2014 15:15:10 +0000 (17:15 +0200)
commit984758cd3c76276366be05149324df6a17916cad
tree44680b2fb8a8f37d8201735c1754e961b32280f4
parentc0a00518e4ba03b00e6a8f1e4bf9b448f69a9d49
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>
admin/check_parent_total.pl