View | Details | Raw Unified | Return to bug 17872
Collapse All | Expand All

(-)a/C4/Budgets.pm (-1 / +1 lines)
Lines 511-517 sub GetBudgetHierarchy { Link Here
511
        }
511
        }
512
    } else {
512
    } else {
513
        if ($branchcode) {
513
        if ($branchcode) {
514
            push @where_strings," (budget_branchcode =? or budget_branchcode is NULL)";
514
            push @where_strings," (budget_branchcode =? or budget_branchcode is NULL OR budget_branchcode='')";
515
            push @bind_params, $branchcode;
515
            push @bind_params, $branchcode;
516
        }
516
        }
517
    }
517
    }
(-)a/admin/aqbudgetperiods.pl (-2 lines)
Lines 198-205 elsif ( $op eq 'close_form' ) { Link Here
198
198
199
    my $budgets_to_move = GetBudgetHierarchy($budget_period_id);
199
    my $budgets_to_move = GetBudgetHierarchy($budget_period_id);
200
200
201
    # C4::Context->userenv->{branchcode}, $show_mine ? $borrower_id : '')
202
203
    my $number_of_unreceived_orders = 0;
201
    my $number_of_unreceived_orders = 0;
204
    for my $budget (@$budgets_to_move) {
202
    for my $budget (@$budgets_to_move) {
205
203
(-)a/admin/aqbudgets.pl (-3 / +1 lines)
Lines 237-244 if ( $op eq 'list' ) { Link Here
237
    );
237
    );
238
238
239
    my @budgets = @{
239
    my @budgets = @{
240
        GetBudgetHierarchy($$period{budget_period_id},
240
        GetBudgetHierarchy( $$period{budget_period_id}, C4::Context->userenv->{branch}, ( $show_mine ? $borrower_id : 0 ))
241
            C4::Context->userenv->{branchcode}, $show_mine ? $borrower_id : '')
242
    };
241
    };
243
242
244
    my $period_total = 0;
243
    my $period_total = 0;
245
- 

Return to bug 17872