Bugzilla – Attachment 31104 Details for
Bug 11714
GetBudgetHierarchy needs optimization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11714: A fund is a top-level fund if it does not have any parent
PASSED-QA-Bug-11714-A-fund-is-a-top-level-fund-if-.patch (text/plain), 1.20 KB, created by
Kyle M Hall
on 2014-08-22 15:35:18 UTC
(
hide
)
Description:
[PASSED QA] Bug 11714: A fund is a top-level fund if it does not have any parent
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2014-08-22 15:35:18 UTC
Size:
1.20 KB
patch
obsolete
>From f85c30fce17b2d0917453206741b9dae3e05216a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 18 Aug 2014 14:48:01 +0200 >Subject: [PATCH] [PASSED QA] Bug 11714: A fund is a top-level fund if it does not have any parent > >Signed-off-by: Paola Rossi <paola.rossi@cineca.it> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > admin/aqbudgets.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl >index 0ca05f8..5699f10 100755 >--- a/admin/aqbudgets.pl >+++ b/admin/aqbudgets.pl >@@ -295,7 +295,7 @@ if ( $op eq 'list' ) { > $budget->{'budget_remaining'} = $budget->{'budget_amount'} - $budget->{'budget_spent'} - $budget->{budget_ordered}; > $budget->{'total_remaining'} = $budget->{'budget_amount'} - $budget->{'total_spent'} - $budget->{total_ordered}; > # adds to total - only if budget is a 'top-level' budget >- if ($budget->{depth} == 0) { >+ unless ( defined $budget->{budget_parent_id} ) { > $period_alloc_total += $budget->{'budget_amount'}; > $spent_total += $budget->{total_spent}; > $ordered_total += $budget->{total_ordered}; >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11714
:
25147
|
25305
|
29624
|
30925
|
30942
|
30943
|
31103
| 31104