https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12310 --- Comment #66 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 73873 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73873 Bug 12310 : Decimal separator issues: fixes in fines Review of attachment 73873: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=12310&attachment=73873) ----------------------------------------------------------------- ::: koha-tmpl/intranet-tmpl/prog/en/includes/decimal-input-js.inc @@ +19,5 @@
+ // remove everything except digits, minuses, and the chars in DecimalSeparators syspref + var formatted_decimal = formatted_decimal + .replace(/[^0-9-[% Koha.Preference('DecimalSeparators') %]]/g, ''); + var decimal = formatted_decimal + .replace(/[[% Koha.Preference('DecimalSeparators') %]]/g, '.');
Sorry, but this doesn't quite work. 5,123.12 -> 5.123.12 The decimal point is likely the LAST one that matches the DecimalSeparators. While everything else is either noise or thousands separators. -- You are receiving this mail because: You are watching all bug changes.