From 29ed0f384ba694ccdcf7182aaf1ed7792ca944fb Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Mon, 14 Sep 2009 17:22:55 +0200 Subject: [PATCH] [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. --- admin/aqbudgets.pl | 5 +++-- koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl index 17926c270d..a537908105 100755 --- a/admin/aqbudgets.pl +++ b/admin/aqbudgets.pl @@ -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), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl index 64115d5bcc..9c8a3c5eb8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl @@ -197,7 +197,7 @@ - Period allocated + Period allocated -- 2.39.5