Lines 263-269
my @period_active_loop;
Link Here
|
263 |
foreach my $result ( @{$results} ) { |
263 |
foreach my $result ( @{$results} ) { |
264 |
my $budgetperiod = $result; |
264 |
my $budgetperiod = $result; |
265 |
$budgetperiod->{budget_active} = 1; |
265 |
$budgetperiod->{budget_active} = 1; |
266 |
my @funds = Koha::Database->new()->schema->resultset('Aqbudget')->search({ budget_period_id => $budgetperiod->{budget_period_id} }); |
266 |
my @funds = GetBudgets({ budget_period_id => $budgetperiod->{budget_period_id} }); |
267 |
$budgetperiod->{count} = scalar @funds; |
267 |
$budgetperiod->{count} = scalar @funds; |
268 |
push( @period_active_loop, $budgetperiod ); |
268 |
push( @period_active_loop, $budgetperiod ); |
269 |
} |
269 |
} |
Lines 278-284
my @period_inactive_loop;
Link Here
|
278 |
foreach my $result ( @{$results} ) { |
278 |
foreach my $result ( @{$results} ) { |
279 |
my $budgetperiod = $result; |
279 |
my $budgetperiod = $result; |
280 |
$budgetperiod->{budget_active} = 1; |
280 |
$budgetperiod->{budget_active} = 1; |
281 |
my @funds = Koha::Database->new()->schema->resultset('Aqbudget')->search({ budget_period_id => $budgetperiod->{budget_period_id} }); |
281 |
my @funds = GetBudgets({ budget_period_id => $budgetperiod->{budget_period_id} }); |
282 |
$budgetperiod->{count} = scalar @funds; |
282 |
$budgetperiod->{count} = scalar @funds; |
283 |
push( @period_inactive_loop, $budgetperiod ); |
283 |
push( @period_inactive_loop, $budgetperiod ); |
284 |
} |
284 |
} |