Bug 5985

Summary: Check amount allocated to child funds when editing amount on parent fund
Product: Koha Reporter: Nuño López Ansótegui <nunyo.lopez>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: P5 - low CC: mathsabypro
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Image

Description Nuño López Ansótegui 2011-03-29 09:49:56 UTC Comment hidden (obsolete)
Comment 1 Katrin Fischer 2014-11-10 22:58:22 UTC
Almost completely fixed - the only thing I can reprodocue is 3.1:
It's possible to edit a parent fund to be below the amount allocated to the child.
Comment 2 Katrin Fischer 2015-06-06 21:24:58 UTC
You can still set a parent fund to a lower total amount than its child fund.
Comment 3 Katrin Fischer 2019-05-04 11:48:28 UTC
This bug still exists:

1) Create a child fund to an existing fund
2) Set the amount to something equal or lower than the parent fund
3) Edit parent fund, set it to a lower value than the child fund
=> You can save
4) Edit the child fund again
=> You can no longer save, as the amount exceed the amount of the parent fund

I think we check upwards, but we also need to check downwards.