[Koha-bugs] [Bug 28223] New: Total for budgets is incorrect when child funds have negative values

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 26 14:40:35 CEST 2021


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

            Bug ID: 28223
           Summary: Total for budgets is incorrect when child funds have
                    negative values
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Acquisitions
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

The math that we do on this page uses data elements parent_id and self_id to
ensure we add only the parent budgets and don't add any more than once.

When a budget is negative, however, we don't add these elements and this then
totals child funds an additional time

To recreate:
1 - Have a parent fund and a child fund
2 - Order an amount from the child fund that is greater than the amount
available
3 - Browse to acquisitions
4 - Confirm the totals look right
5 - Click on the over spent fund to go to 'Funds for main budget'
6 - Note the totals are incorrect

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


More information about the Koha-bugs mailing list