summaryrefslogtreecommitdiff
authorJonathan Druart <jonathan.druart@biblibre.com>2014-08-18 12:48:01 (GMT)
committer Tomas Cohen Arazi <tomascohen@gmail.com>2014-10-31 19:41:53 (GMT)
commita0d1d9d198ebda382a47f402927240d9660bcb69 (patch) (side-by-side diff)
tree84b21487da4e2a2ea07ef5da93a52dd526bba563
parent32bd54a7cadcf90be797afa1a8e9f1bf83c6ee57 (diff)
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> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xadmin/aqbudgets.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl
index 8b5a690..1491561 100755
--- a/admin/aqbudgets.pl
+++ b/admin/aqbudgets.pl
@@ -302,7 +302,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};