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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 21 Sep 2022 22:02:17 +0000 (19:02 -0300)
commit35724169c11352d4cc1e22fcd50e91d39b7d8c44
treea577a3ca93575f77fd65941f345e2e4c60811646
parent63f88a574299b3831bf523e5bb8ead52f954864a
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>
C4/Budgets.pm
acqui/orderreceive.pl