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

Kyle M Hall <[email protected]> changed:

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

--- Comment #8 from Kyle M Hall <[email protected]> ---
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 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to