[Koha-bugs] [Bug 23767] Spent and Ordered total values don't include child funds on acqui-home

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 11 11:39:15 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23767

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #116285|0                           |1
        is obsolete|                            |

--- Comment #25 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 116702
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116702&action=edit
Bug 23767: Total children only if parents not visible

This patch changes the way to calculate the footer. It adds the budget and
parent ids to the cell
as custom data elements. When totaling we grab a list of all the rows we are
showing - if a
row has a parent and the parent is showing then we skip adding its value to the
total.

As the function is used on both acqui-home and aqbudgets I adjusted both
templates

To test:
1 - Follow the test plan on previous patch
2 - Try filtering the table so you see only the child funds
3 - Confirm the totals show the child alone when it is visible
4 - Confirm the child total is excluded when the parent is visible

Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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


More information about the Koha-bugs mailing list