From 1d7712ed44ee7a3090bb728721c089086549afa0 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Wed, 18 Oct 2023 10:45:48 +0200 Subject: [PATCH] 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: Sabrina --- .../prog/en/modules/acqui/supplier.tt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt index fae8f92e65..50332643b5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -197,7 +197,8 @@ [% END %] [% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %] [% IF ( enter ) %] -
+ +
[% IF ( booksellerid ) %] @@ -346,7 +347,7 @@ [% END %]
  • - %
  • + % - Example: 7.5 %
  • days @@ -516,6 +517,7 @@ [% Asset.js("js/acquisitions-menu.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %] [% Asset.js("js/acq.js") | $raw %] + [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% END %] -- 2.30.2