[Koha-bugs] [Bug 12168] New: Spent and ordered budget values are wrong if deep > 2

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 1 14:07:38 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12168

            Bug ID: 12168
           Summary: Spent and ordered budget values are wrong if deep > 2
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Acquisitions
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: jonathan.druart at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

A really weird (and old) code process the calculation for the spent and ordered
sublevel funds.
It only takes into account the direct children.

So if you have:
fund1 (spent=100) parent of fund11 (spent=10) parent of fund111 (spent=1), you
get:
fund     | base-level | total spent
fund1    | 100        | 110
fund11   | 10         | 11
fund111  | 1          | 1

which is wrong, it should be
fund     | base-level | total spent
fund1    | 100        | 111
fund11   | 10         | 11
fund111  | 1          | 1

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


More information about the Koha-bugs mailing list