]> git.koha-community.org Git - koha.git/commit
Bug 15962: Block the currency deletion if used
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 14 Apr 2016 12:29:38 +0000 (14:29 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 14 Apr 2016 12:40:19 +0000 (14:40 +0200)
commitc20496aea938e1faaa53daff5e2cf3d697b0eac9
tree3895c5a668c331f4e235c0633db9986da86907e8
parentb8c5192ec70e3b87644dd84cf87144370c2410bf
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: Julian Maurice <julian.maurice@biblibre.com>
admin/currency.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt