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

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 9 months 13 days
    #1 by Dmitry Kozlov Mar 13 ’17 at 04:48

    Hi Tom,

    You can try a number formatting plug-in. Say, this one:

    https://github.com/customd/jquery-number

    Please, ask future questions in our new forum:

    https://spform.com/forum/

  • lawrencesanchez
    Member
    Member for: 21 days
    #2 by lawrencesanchez Jun 12 ’20 at 01:56

    This depends wildly on the country. The correct way is the way the currency used before 2002 was written. Wikipedia has a brilliant article about the Euro currency. The ISO code EUR is needed and not the sign €. This means that every contract will need to have amounts written in ISO code format as EUR. Is there a lot of online clazwork is there, choose an essay service by clearly understanding about that service. Their promotions are easy to get to in professional references, daily papers, neighborhood release sheets, and comparative ranges

Displaying 1 to 2 of 2 messages