]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Oct 2021 20:22:10 +0000 (10:22 -1000)
commit5078aa18d4fe2567e2b9168a9d99055fc7e40b7b
treee28351f9a0dbe34ccb4729292e177c9d6db1e576
parentfc973b26f76ccfebf7b7c36c324b81274ffcd6d9
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>
(cherry picked from commit 2c4e29795a10ffb2d4835803ca6fa6fd44812c2f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt