diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl index 8b88f93132..562a146724 100755 --- a/acqui/neworderempty.pl +++ b/acqui/neworderempty.pl @@ -231,7 +231,7 @@ my ( $flags, $homebranch )= ($borrower->{'flags'},$borrower->{'branchcode'}); my $budget = GetBudget($budget_id); # build budget list my $budget_loop = []; -my $budgets = GetBudgetHierarchy(q{},q{},$borrower->{borrowernumber}); +my $budgets = GetBudgetHierarchy(q{},$borrower->{branchcode},$borrower->{borrowernumber}); foreach my $r (@{$budgets}) { if (!defined $r->{budget_amount} || $r->{budget_amount} == 0) { next;