]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 14 Dec 2022 09:30:38 +0000 (10:30 +0100)
commit7b3662b37bdd81def9f82ef43a9def9ae7e904df
tree8b1e2fda0297602858c43019a079a3a2ac64aca2
parentb28d27100bca4c24814306bb9c7e07ecc7ce2fdf
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>
(cherry picked from commit 3fa5d0a421092f618d3c56dd843d43119043f718)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
C4/Budgets.pm
acqui/orderreceive.pl