From 89da386b82aa5ecc8a9f969c534dd0c953086dc3 Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 25 Feb 2024 10:52:11 +1300 Subject: [PATCH] dev/core#5026 Fix failure to calculate total with non-US separators --- templates/CRM/Price/Form/Calculate.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Price/Form/Calculate.tpl b/templates/CRM/Price/Form/Calculate.tpl index 438f9739e156..6bb92cfda4b4 100644 --- a/templates/CRM/Price/Form/Calculate.tpl +++ b/templates/CRM/Price/Form/Calculate.tpl @@ -133,7 +133,7 @@ function calculateSelectLineItemValue(priceElement) { function calculateText(priceElement) { //CRM-16034 - comma acts as decimal in price set text pricing //CRM-19937 - dollar sign easy mistake to make by users. - var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '').replace(symbol, '')); + var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '').replace(symbol, '').replace(separator, '.')); if (isNaN(textval)) { textval = parseFloat(0);