Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Nick Clemens 6523db7321
Bug 31367: Add subtotals if budget has children
On bug 29287 we added child funds if a fund had no parent id

It turns out funds can have a parent, and still have children (sub-sub-funds)

This patch simply checks for children, rather than checking for lack of parent.

Totals are already calculated correctly in GetBudgetHierarchy

To test:
1 - Add a fund "Fund" to a budget - assign 1000 dollars
2 - Add a sub-fund "SubFund" - assign 100 dollars
3 - Add a sub-sub-fund "SubSubFund" - assign 10 dollars
4 - Add to a basket $5 order from SubSubFund
5 - Add to a basket $50 order from SubFund
6 - Add to a basket $500 order form Fun
7 - View acqui home - note 'SubFund' does not include total from 'SubSubFund'
8 - Apply patch
9 - Confirm all sub-sub-funds totaled in sub-funds and that fund total correctly adds sub and sub-sub funds

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-09-23 09:00:06 -03:00
..
acqui Bug 31367: Add subtotals if budget has children 2022-09-23 09:00:06 -03:00
admin Bug 30982: (QA follow-up) Remove redundancy from template 2022-09-23 08:57:51 -03:00
authorities
basket
batch
catalogue Bug 31439: Use pseudo element for bullet in results.tt 2022-09-12 15:36:11 -03:00
cataloguing Bug 30941: Add cataloguing plugins for 146$bcdef (UNIMARC) 2022-08-19 08:55:09 -03:00
circ Bug 26626: (follow-up) Be consistent with icon and accesskeys 2022-09-07 13:54:30 -07:00
clubs Bug 31516: Add error message for viewing enrollments for a non-existent club 2022-09-12 16:19:27 -03:00
course_reserves
errors
ill Bug 30890: Fixed ILL breadcrumb 2022-09-22 08:08:46 -03:00
installer
labels Bug 31564: Pass start label in PDF link 2022-09-22 08:15:19 -03:00
mana
members Bug 31562: Respect mandatory fields pref 2022-09-22 09:24:49 -03:00
offline_circ
onboarding
patron_lists
patroncards Bug 31352: Change 'Borrower name' to 'Patron name' 2022-08-22 11:27:43 -03:00
plugins
pos Bug 30619: Add email receipt to POS 2022-09-07 15:59:34 -07:00
recalls
reports Bug 31401: (QA follow-up) Remove Koha.ArePluginsEnabled, it is no longer needed 2022-09-07 13:55:37 -07:00
reserve
reviews
rotating_collections
serials Bug 30718: (QA follow-up) Remove double use KohaDates 2022-08-19 08:26:40 -03:00
services
suggestion Bug 31374: (follow-up) change private note to staff_note and reorder columns 2022-09-07 13:32:51 -07:00
tags
test
tools Bug 27421: (QA follow-up) Add redirection to job details 2022-09-19 15:15:00 -03:00
virtualshelves
about.tt Bug 30025: Replace AllowManualAuthorityEditing with RequireChoosingExistingAuthority 2022-09-16 16:48:34 -03:00
auth.tt
intranet-main.tt