Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
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
..
csv Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
acqui-home.tt Bug 31367: Add subtotals if budget has children 2022-09-23 09:00:06 -03:00
addorder.tt
addorderiso2709.tt Bug 30389: Switch to Bootstrap tabs on the page for adding orders from MARC file 2022-07-29 16:09:45 -03:00
ajax.tt
basket.tt Bug 27817: Use biblio-title include in some acquisitions pages 2022-09-19 15:13:12 -03:00
basketgroup.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
basketheader.tt Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
booksellers.tt Bug 31377: Add internal note column to booksellers.tt 2022-08-22 13:18:21 -03:00
cancelorder.tt Bug 29658: Fix crash on cancelling cancelled order 2022-09-12 16:14:47 -03:00
duplicate_orders.tt Bug 29648: Duplicate orders view - no change 2022-04-27 11:20:43 -10:00
edi_ean.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
edifactmsgs.tt
edimsg.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
histsearch.tt Bug 29648: Order search view - normal 2022-04-27 11:20:43 -10:00
invoice-files.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
invoice.tt Bug 27817: Use biblio-title include in some acquisitions pages 2022-09-19 15:13:12 -03:00
invoices.tt Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
lateorders.tt Bug 15348: (follow-up) Fix pre-selected date when editing from late orders page 2022-09-16 10:36:58 -03:00
moddeliverydate.tt Bug 15348: (follow-up) Fix calendar widget, translateability, etc 2022-09-16 10:36:57 -03:00
modordernotes.tt
neworderempty.tt Bug 15348: (follow-up) Fix calendar widget, translateability, etc 2022-09-16 10:36:57 -03:00
neworderempty_duplicate.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
newordersubscription.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
newordersuggestion.tt Bug 23991: Move SearchSuggestion to Koha::Suggestions 2022-06-27 12:30:28 -03:00
ordered.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
orderreceive.tt Bug 27817: Use biblio-title include in some acquisitions pages 2022-09-19 15:13:12 -03:00
parcel.tt Bug 27817: Use biblio-title include in some acquisitions pages 2022-09-19 15:13:12 -03:00
parcels.tt Bug 30718: (QA follow-up) KohaDates filter on inputs 2022-08-19 08:26:40 -03:00
showorder.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
spent.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
supplier.tt Bug 31017: Update field name to 'type' 2022-08-19 16:15:15 -03:00
transferorder.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
uncertainprice.tt Bug 27817: Use biblio-title include in some acquisitions pages 2022-09-19 15:13:12 -03:00
z3950_search.tt Bug 29961: Make horizontal scroll bar always visible on acqui/z3950_search.pl 2022-06-02 14:02:30 -03:00