]> git.koha-community.org Git - koha.git/commit
Bug 15962: Block the currency deletion if used
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 Mar 2016 10:46:46 +0000 (10:46 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Mon, 21 Mar 2016 22:56:11 +0000 (22:56 +0000)
commitfdac3eecf857ef6ff85b6cc971bb0c4de2c368a1
treedd25bc64ef79142c181303c2838bd0a3ffb1f938
parent5896770e079840f91e048de59b9c235d3974698c
Bug 15962: Block the currency deletion if used

A currency should not be deleted if used by a vendor or a basket.

Test plan:
1/ Add a new currency
2/ Create a vendor using this currency
3/ Create a basket using this currency
4/ Try to delete the currency
5/ Delete the basket
6/ Try to delete the currency
7/ Delete the vendor
8/ Delete the currency

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
Koha/Acquisition/Bookseller.pm
admin/currency.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt