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

(-)a/acqui/acqui-home.pl (-1 / +11 lines)
Lines 129-137 $filters->{from_placed_on} = my $from_placed_on = dt_from_string; Link Here
129
$filters->{to_placed_on}   = my $to_placed_on   = dt_from_string;
129
$filters->{to_placed_on}   = my $to_placed_on   = dt_from_string;
130
$filters->{from_placed_on}->set_time_zone('floating')->subtract( years => 1 );
130
$filters->{from_placed_on}->set_time_zone('floating')->subtract( years => 1 );
131
131
132
my $budgetperiods = C4::Budgets::GetBudgetPeriods;
133
my $bp_loop       = $budgetperiods;
134
for my $bp ( @{$budgetperiods} ) {
135
    my $hierarchy = C4::Budgets::GetBudgetHierarchy( $$bp{budget_period_id}, undef, undef, 1 );
136
    for my $budget ( @{$hierarchy} ) {
137
        $$budget{budget_display_name} = sprintf( "%s", ">" x $$budget{depth} . $$budget{budget_name} );
138
    }
139
    $$bp{hierarchy} = $hierarchy;
140
}
141
132
$template->param(
142
$template->param(
133
    type              => 'intranet',
143
    type              => 'intranet',
134
    loop_budget       => \@budget_loop,
144
    loop_budget       => \@budget_loop,
145
    bp_loop           => $bp_loop,
135
    total             => $total,
146
    total             => $total,
136
    totspent          => $totspent,
147
    totspent          => $totspent,
137
    totordered        => $totordered,
148
    totordered        => $totordered,
138
- 

Return to bug 39044