$template->param(
add_validate => 1,
dateformat => C4::Dates->new()->visual(),
- budget_dropbox => $budget_period_dropbox,
+ budget_dropbox => $budget_parent_dropbox,
budget_perm_dropbox => $budget_perm_dropbox,
branchloop_select => \@branchloop_select,
%$period,
);
}
+ my $budget_period_total = $num->format_price($$period{budget_period_total}) if $$period{budget_period_total};
$template->param(
else => 1,
budget => \@loop,
- budget_period_total => $num->format_price($$period{budget_period_total}),
+ budget_period_total => $budget_period_total,
period_alloc_total => $num->format_price($period_alloc_total),
base_alloc_total => $num->format_price($base_alloc_total),
sub_alloc_total => $num->format_price($sub_alloc_total),
<tfoot>
<tr>
- <th colspan='2' style='text-align: left;' nowrap>Period allocated <!-- TMPL_VAR NAME='budget_period_total'--> </th>
+ <th colspan='2' style='text-align: left;' nowrap>Period allocated <!--TMPL_IF NAME="budget_period_total" --><!-- TMPL_VAR NAME='budget_period_total'--><!-- /TMPL_IF --> </th>
<th nowrap style='text-align: right;' > <!-- TMPL_VAR NAME='period_alloc_total'--></th>
<th nowrap style='text-align: right;'> <!-- TMPL_VAR NAME='base_alloc_total'--></th>
<th nowrap style='text-align: center;'> <!-- TMPL_VAR NAME='sub_alloc_total'--></th>