]> git.koha-community.org Git - koha.git/commit
Bug 35087: Discount rate only accepts a point as decimal separator
authorThibaud Guillot <thibaud.guillot@biblibre.com>
Thu, 18 Jan 2024 08:28:29 +0000 (09:28 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 2 Oct 2024 09:33:20 +0000 (10:33 +0100)
commitebc2568109b8b49888917145f9cafaecd7b35218
tree1ac415f7b71960197c9bca261975ec384d3f82f9
parentd9be17863ab83648e4f2838d162ed7274a5f4032
Bug 35087: Discount rate only accepts a point as decimal separator

When a comma is used to define the discount rate of a vendor,
the data is not recorded (as NULL), it is however recorded if the
separator is a point.

Test plan:

1) Go to acqui module and edit a vendor
2) Set a discount rate with a comma as decimal separator
3) Edit again or request your database to see that there is no data
   saved
4) Do it again with a point as decimal and see it works
5) Apply this patch and reloard the build for the templates
 6) Repeat step 2 and see the warning to inform you that you must use a
    point

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Sonia <sonia.bouis@univ-lyon3.fr>
Signed-off-by: Olivier V <olivier.vezina@inLibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/includes/validator-strings.inc
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt
koha-tmpl/intranet-tmpl/prog/js/staff-global.js