Bug 20306 - Negative values break funds edit
Summary: Negative values break funds edit
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low major (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-27 19:32 UTC by Tomás Cohen Arazi
Modified: 2019-06-27 09:24 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi 2018-02-27 19:32:46 UTC
To reproduce:
- Have a budget and a fund on it.
- Spend more than what's in the fund
- Confirm you allow to surpass the funds max.
- Go to the budgets/funds list
=> SUCCESS: A negative value shows
- Choose (on the fund's dropdown) to edit the fund
=> FAIL: Kaboom!

Template process failed: undef error - round() overflow. Try smaller precision or use Math::BigFloat at /home/vagrant/kohaclone/Koha/Number/Price.pm line 64.
Comment 1 Tomás Cohen Arazi 2018-02-27 21:35:21 UTC
I'm closing this bug, because I belive there was a problem on the data, due to tests not cleaning up.