Bug 34169: Use jQuery validator plugin to validate amounts
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 14 Jul 2023 15:42:46 +0000 (15:42 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Jul 2023 17:55:34 +0000 (14:55 -0300)
commit6b2308c17bd8add62e5cc7deb095ed28a2e2fcf4
tree8dfb14fc4ad04d2d268cdd49f241e76b2a73f94a
parent5de1c66fe1a38aafaea690e5075b01b85e685f8e
Bug 34169: Use jQuery validator plugin to validate amounts

This is a first step towards more consistency and possibly supporting
multiple input formats as well in the future. It allows us to mark all
input fields for monetary values, such as prices, replacement prices,
fees etc. with a class that is linked to a check for the 'number' format
in the jQuery Validator plugin.

This is the base patch that does nothing by itself, please see
test plan in second patch.

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/validator-strings.inc
koha-tmpl/intranet-tmpl/prog/js/staff-global.js