]> git.koha-community.org Git - koha.git/commit
Bug 28985: Force positive numbers for itemtype charge fields
authorNick Clemens <nick@bywatersolutions.com>
Fri, 10 Sep 2021 12:12:07 +0000 (12:12 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Sep 2021 12:04:48 +0000 (14:04 +0200)
commitb296474cef4ec7b7eb491757cf7b230f481bef67
tree151d83be2585e60ca0dc5d1f8af439f8c5fa634e
parent87de9fbb8aa8aa4940cad8b2e6eb9a62bb9a401f
Bug 28985: Force positive numbers for itemtype charge fields

This patch adds a min attribute to the fields on this page and adds
other cost related fields to validator

To test:
1 - Apply patch
2 - Browse to Administration->Item types
3 - Edit or create an item type
4 - Attempt to place a negative or non numeric value in:
    Daily rental charge
    Hourly rental charge
    Default replacement cost
    Processing fee
5 - You should not be able to

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt