Skip to content

Commit

Permalink
Merge pull request #29499 from eileenmcnaughton/currency
Browse files Browse the repository at this point in the history
dev/core#5026 Fix failure to calculate total with non-US separators
  • Loading branch information
colemanw authored Feb 26, 2024
2 parents 24fa95e + 89da386 commit 39f3d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/CRM/Price/Form/Calculate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39f3d6d

Please sign in to comment.