Reply To: Decimal separator in currency field (not a comma)

Forums General discussion Decimal separator in currency field (not a comma) Reply To: Decimal separator in currency field (not a comma)

#22991
Ayanda Makhathini
Participant

Hi Alex

Thank you for the function it works.The calculation,rounding off and replace comma works well but i noticed that I’m losing couple cents if I dont round off the value of the item which isn’t rounded off when i get it from look up list, I’m using the function below to get the value(hprice) and try using the toFixed(2) but i get a error. Not sure yet but also working on it.

function convertprice()
{
var hPrice = getFieldValue(“h_price”);

var priceValueFixed = hPrice.toFixed(2);

setFieldValue(“h_price”,priceValueFixed);

}

Regards

Attachments: