Bug 20306

Summary: Negative values break funds edit
Product: Koha Reporter: Tomás Cohen Arazi <tomascohen>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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.