Skip to content

Commit

Permalink
dev/core#5026 Fix failure to calculate total with non-US separators
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Feb 24, 2024
1 parent c005064 commit 89da386
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 89da386

Please sign in to comment.