Bug 22296: Add Invoice Adjustments to GetBudgetHierarchy
commitb45f8d066e40d16245a838a95c6fc61706cededb
authorNick Clemens <nick@bywatersolutions.com>
Fri, 8 Feb 2019 20:24:05 +0000 (8 20:24 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 19 Mar 2019 09:31:41 +0000 (19 09:31 +0000)
tree5a62b98a5a4e0a95e5ca82340461cd058e3ae506
parent7fb724b92268070a02cfa59b3fbb0af10691d3d4
Bug 22296: Add Invoice Adjustments to GetBudgetHierarchy

To test:
1 - prove -v t/db_dependent/Budgets.t
2 - Create some invoices on a single budget
    Invoice 1:
      add a non-encumbered adjustment for 1
      add an encumbered adjustment 2
      leave open
    Invoice 2:
      add a non-encumbered adjustment for 4
      add an encumbered adjustment for 8
3 - View acq home page, should see 2 order and 12 spent for the budget
4 - View the spent and ordered pages, they should show the correct amounts
5 - Add more orders etc and confirm things total correctly

https://bugs.koha-community.org/show_bug.cgi?id=22296
Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit deb968ea45276e56826b592026617a96398b61da)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Budgets.pm
t/db_dependent/Budgets.t