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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 16 12:52:58 CEST 2014


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #28102|0                           |1
        is obsolete|                            |
  Attachment #28103|0                           |1
        is obsolete|                            |

--- Comment #8 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 28289
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28289&action=edit
[PASSED QA] Bug 12168: Spent and ordered budget values are wrong if deep > 2

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

Test plan:
- Create 1 budget and 3 funds with the same structure as above.
- Create some orders and receive them (not all).
- Go on the fund list view and verify the values are correct.

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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


More information about the Koha-bugs mailing list