diff --git a/acqui/acqui-home.pl b/acqui/acqui-home.pl index 58ba68e3a2..393a13152b 100755 --- a/acqui/acqui-home.pl +++ b/acqui/acqui-home.pl @@ -129,4 +129,11 @@ $template->param( suggestions_count => $suggestions_count, ); +my $cur = GetCurrency(); +if ( $cur ) { + $template->param( + currency => $cur->{currency}, + ); +} + output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc index b13fb340bd..400bbb9255 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc @@ -1 +1 @@ -[% IF ( currency ) %]

Currency = [% currency %]

[% ELSE %]

No active currency is defined

Please specify an active currency.

[% END %] \ No newline at end of file +[% IF ( currency ) %]

Currency = [% currency %]

[% ELSE %]

No active currency is defined

[% IF CAN_user_parameters_parameters_remaining_permissions %]Please specify an active currency.[% ELSE %]Your administrator must specify an active currency.[% END %]

[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index a83fe0bcf2..6b521aa763 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -98,6 +98,7 @@ $(document).ready(function() { [% INCLUDE 'acquisitions-toolbar.inc' %]

Acquisitions

+ [% INCLUDE 'budgets-active-currency.inc' %] [% UNLESS ( loop_budget ) %] [% IF ( CAN_user_acquisition_period_manage ) %]
You must define a budget in Administration