From 3fe16da28c5d27a13d7d5c4d95f1fee9b40ab970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Thu, 22 Oct 2015 11:44:23 +0200 Subject: [PATCH] Bug 15049 - Add warning about "No active currency" to Acquisitions start page If no active currency is defined, Acquisitions dose not work properly and there can occur software errors while receiving. This patch adds the warning about missing active currency to Home > Acquisitions To test: - Apply patch - Go to Home > Administration > Currencies & Exchange Rates > Currencies - Make sure that no active currency is set - Go to Home > Acquisitions - Verify that a warning displays - Set an active currency - Veryfy that warning no longer displays --- acqui/acqui-home.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt | 1 + 2 files changed, 2 insertions(+) diff --git a/acqui/acqui-home.pl b/acqui/acqui-home.pl index 58ba68e..8d5a0c4 100755 --- a/acqui/acqui-home.pl +++ b/acqui/acqui-home.pl @@ -127,6 +127,7 @@ $template->param( totordered_active => $totordered_active, totavail_active => $totavail_active, suggestions_count => $suggestions_count, + currency => GetCurrency(), ); output_html_with_http_headers $query, $cookie, $template->output; 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 a83fe0b..6b521aa 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
-- 1.7.10.4