]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 1 Oct 2021 18:09:37 +0000 (14:09 -0400)
commit2c4e29795a10ffb2d4835803ca6fa6fd44812c2f
tree29d058772fa9c446e3417de86413cbbec83fd38f
parentaa474bf12e75a6a7d5ba1cfcb25251af1385b3e2
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt