Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Nick Clemens 1f3152d453 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@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-12 12:14:50 +01:00
..
csv Bug 27486: Rename system preference delimiter to CSVDelimiter 2021-01-29 09:03:45 +01:00
tables Bug 18480: Get rid of unwanted / distracting link in patron search for fund owner 2018-10-15 14:19:08 +00:00
acqui-home.tt Bug 23767: Total children only if parents not visible 2021-02-12 12:14:50 +01:00
addorder.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
addorderiso2709.tt Bug 27605: Add floating toolbar to patron search page 2021-02-09 09:23:55 +01:00
ajax.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
basket.tt Bug 27403: (follow-up) Make basket toolbar and table header work together 2021-02-09 09:23:53 +01:00
basketgroup.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
basketheader.tt Bug 26712: Set focus for cursor to basket name input box on basketheader.pl 2020-11-03 10:57:35 +01:00
booksellers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
cancelorder.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
duplicate_orders.tt Bug 26767: Remove the use of jquery.checkboxes plugin from duplicate orders template 2020-11-03 10:57:35 +01:00
edi_ean.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
edifactmsgs.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
edimsg.tt Bug 20667: Update two-column templates with Bootstrap grid: Acquisitions part 1 2018-07-06 13:19:35 +00:00
histsearch.tt Bug 21851: Improve style of sidebar forms 2021-01-28 17:32:53 +01:00
invoice-files.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
invoice.tt Bug 24157: Handle the case where logged in user does not have edit_invoices 2020-07-30 17:30:23 +02:00
invoices.tt Bug 24157: Handle the case where logged in user does not have edit_invoices 2020-07-30 17:30:23 +02:00
lateorders.tt Bug 15329: Add new column for budget to the late orders table 2020-11-04 12:59:34 +01:00
modordernotes.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
neworderempty.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
neworderempty_duplicate.tt Bug 23958: Use Font Awesome icon to replace "new window" icon image 2019-11-27 09:25:16 +00:00
newordersubscription.tt Bug 11500: Use dateformat syspref and datepicker on additems.pl (and other item cataloguing pages) 2019-12-23 12:01:45 +00:00
newordersuggestion.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
ordered.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
orderreceive.tt Bug 27671: Use Koha.Preference for UniqueItemFields 2021-02-12 12:14:50 +01:00
parcel.tt Bug 27606: Add link back to vendor in breadcrumbs for parcel.tt 2021-02-08 17:09:32 +01:00
parcels.tt Bug 22975: Remove type attribute from script tags: Acquisitions 2019-05-30 10:25:53 +00:00
showorder.tt Bug 24161: Keep tracks of late orders claims 2020-05-04 09:44:44 +01:00
spent.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
supplier.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
transferorder.tt Bug 24648: Contextualization of past tense 'Created' 2020-02-19 15:57:21 +00:00
uncertainprice.tt Bug 26217: Move translatable strings out of templates into acq.js 2020-09-29 14:28:18 +02:00
z3950_search.tt Bug 23302: Less clicks on Z3950 search results 2021-01-27 14:36:26 +01:00