Currency format

rss

Posted by TWendt - Mar 10 ’17 at 03:08

Hello,

i have a javascript that calculate the hardware costs and put the result in a field where the format is Euro currency. But the result is 1000. But i need would display as a decimal number (1.000). Is this possible?

 

//Calculate Hardware

var total = 0;

var rows = fd.relatedItems(4).data('ctx').ListData.Row;

rows.forEach(function(item) {

total += parseFloat(item['Kosten.'])

});

fd.field('Kosten_x0020_Hardware_x0020_Gesa').value(total);

Best regards

Tom

Displaying 1 to 1 of 1 messages