]> git.koha-community.org Git - koha.git/commit
Bug 30359: GetBudgetHierarchy is slow on order receive page
authorJohanna Raisa <johanna.raisa@gmail.com>
Fri, 25 Mar 2022 10:25:56 +0000 (12:25 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 31 Oct 2022 22:26:01 +0000 (22:26 +0000)
commit3fa5d0a421092f618d3c56dd843d43119043f718
treee54befa18d9dc26f37013fa58da70a9a0ba89321
parent9c6d9f51060f75018fc2111af40553659f52899b
Bug 30359: GetBudgetHierarchy is slow on order receive page

This patch adds skiptotals parameter to GetBudgetHierarchy so calculating
totals can be skipped from some pages.

Test plan:
1) Open browser's Inspect -> Network
2) Go to receive orders
3) Check the timings for page load
4) Apply the patch
5) Refresh the page
6) Check the timings again
7) prove t/db_dependent/Budgets.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 35724169c11352d4cc1e22fcd50e91d39b7d8c44)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Budgets.pm
acqui/orderreceive.pl