]> git.koha-community.org Git - koha.git/commit
Bug 15049: Add warning about "No active currency" to Acquisitions start page
authorMarc Véron <veron@veron.ch>
Thu, 22 Oct 2015 09:44:23 +0000 (11:44 +0200)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 30 Dec 2015 23:34:33 +0000 (23:34 +0000)
commit9d2e268739f8fc0bd373cc6312dfdd14a713434c
treecabc31c3f7527fd70972aba2299aaf28f788b071
parent37b0e2ce9cbc4ba5070d22c96b357ddea1db084b
 Bug 15049: Add warning about "No active currency" to Acquisitions start page

If no active currency is defined, Acquisitions does not work properly and software
can occur while receiving.
This patch adds the warning message 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:
  - If user has at least permission for parameters_remaining_perissions,
    the warning should display a link to Currencies and exchange rates (currency.pl)
  - If the user has no permission to edit the Currencies and exchange rates,
    no link is displayed.
- Set an active currency
- Veryfy that the warning no longer displays

(Amended to remove superfluous line / mv)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described. No errors

Signed-off-by: JM Broust <jean-manuel.broust@univ-lyon2.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
acqui/acqui-home.pl
koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt