[biblibre-newacq](bug #3611) fix aqbudgets.pl page
do not show total available if total is zero. Adding a budget, does not show the available parent budgets.
This commit is contained in:
parent
a7615b659a
commit
29ed0f384b
|
|
@ -187,7 +187,7 @@ if ($op eq 'add_form') {
|
|||
$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,
|
||||
|
|
@ -305,10 +305,11 @@ if ($op eq 'add_form') {
|
|||
);
|
||||
}
|
||||
|
||||
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),
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@
|
|||
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue