[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
Thu May 1 14:31:00 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12168
--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 27867
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27867&action=edit
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.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list