[Koha-bugs] [Bug 26076] Paying selected accountlines in full may result in the error "You must pay a value less than or equal to $x"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 29 15:20:55 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26076

--- Comment #2 from Amit Gupta <amitddng135 at gmail.com> ---
(In reply to Kyle M Hall from comment #1)
> Created attachment 107471 [details] [review]
> Bug 26076: Paying selected accountlines in full may result in the error "You
> must pay a value less than or equal to $x"
> 
> This appears to be a bug due to inaccuracies in floating point math. I've
> been unable to reproduce it on demand. Sometimes when using the "Write off
> selected" button, Koha will give the error that the payment is more than the
> amount owed, even though they are the same. The solution I've implemented is
> to move the summation from Perl code to the database query. This video
> demonstrates the issue and afterward, shows the error goes away after the
> patch is applied: https://monosnap.com/file/pG69HC7iI9mU9kkuoCtbkVzVTffKlE
> 
> Test Plan:
> 1) Apply this patch
> 2) Restart all the things!
> 3) Verify that "Write off selected" functions as usual

Hi Kyle,

I am unable to reproduce the issue. I have checked multiple float values for
ex: 114.25, 102.21, 41.36.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list