Caculate totals

rss

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

Hi,

i will calculate the totals from two fields (Currency) with this script.

//Caculate Totals

function calctotal() {

var total = parseFloat(fd.field('Costs').value());

total += parseFloat(fd.field('Wartung').value());

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

}

//Update Field "Kosten_x002d_Insgesamt"

fd.field('Costs').control().change(calctotal);

fd.field('Wartung').change(calctotal);

calctotal();

But the result for the field "Kosten_x002d_Insgesamt"

 

For example:

Costs 30000

Wartung 17.500

Result is 30017.5

Correct Result is 47500

Where is the error?

Best wishes

Tom

 

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

    Hi Tom,

    Please, replace this line:

    total += parseFloat(fd.field('Wartung').value());

    with:

    total += parseFloat(fd.field('Wartung').value().replace(/./g,''));

  • DanielHeller
    Member
    Member for: 2 years 10 months 18 days
    #2 by DanielHeller Apr 12 ’17 at 03:34

    The goal of the company alone makes this one of the best essay services. It focuses on customer satisfaction and production of high quality papers. Their reliability cannot be questioned by customers. Their writers always have something to offer to their customer, which is the value for their money. Not forgetting writers, they handle their homework best. All students who have used custom essay writing service have said it is worth it. Its paper writing services are extremely professional and legitimate.

  • anthonyanson
    Member
    Member for: 1 year 3 months 29 days
    #3 by anthonyanson Nov 1 ’18 at 07:44

    Well, It's all about confidence and hard work because once you choose writing assignment help services it means that you have some kind of difficulties and want experts suggestion to solve but looks like you did a great job to calculate all the equations easily, If you can give us some more related equations then it will be more easy for us to see the outcomes of these calculations.

  • Salman
    Member
    Member for: 1 year 3 months 8 days
    #4 by Salman Nov 22 ’18 at 01:31

    Buddy, It is a technical question and I know the answer is here for this question and I am looking where is the error but I do not find it and I always these type of problems in my proposals projects then I take help with research proposal help Dubai. Well, I am looking the error in this question and If I find so I will tell you!

  • Waltersmith
    Member
    Member for: 1 year 1 month 25 days
    #5 by Waltersmith Jan 3 ’19 at 07:16

    For fear that you simply need to share an calculation you have made and make an application out of it with clear data sources and yields I would prescribe the new administration I ran over www.buyassignment.com/do-my-homework-hw.html. Make the calculation in a spread sheet (javascript can likewise be utilized) and share the information and output cells you require.

  • johnsmith123
    Member
    Member for: 4 months
    #6 by johnsmith123 Oct 31 ’19 at 04:31

    To solve above problem, you need to experts of C++ language experts who can solve this arry problem. Dissertation writing services

  • Treat Assignment Help
    Treat Assignment Help
    Member
    Member for: 1 month 21 days
    #7 by Treat Assignment Help Jan 7 ’20 at 04:14

    Treat Assignment Help writing services is very helpful for the students and also lots of students use the online Assignment Help service for their academic projects. Assignment writing help service gives the best writing services and ideas to everyone. Well, this article is very interesting thanks author and keep posting these types of unique things and any one to need for writing services to contact me.

  • Treat Assignment Help
    Treat Assignment Help
    Member
    Member for: 1 month 21 days
    #8 by Treat Assignment Help Jan 7 ’20 at 04:18

    Treat assignment help offers custom assignment online where you can get excellent writing services from our Professional writers for your assignments. Treat Assignment Help is top-notch solution for custom science-assignment-help online in UK. Hire best coursework writers online and send your assignment requirements, our writing experts will give you affordable pricing quotation. for more info please email at: [email protected] ! Call us at Toll Free Number Or Whatsapp at: +44 7520644027 ..!!

  • Ellena
    Member
    Member for: 13 days
    #9 by Ellena Feb 15 ’20 at 09:30

    Even though it is advisable to seek online help, students should ensure that they get legitimate essay writing services to avoid being conned. The internet is full of scammers.

  • Ellena
    Member
    Member for: 13 days
    #10 by Ellena Feb 15 ’20 at 09:33

    [#9]: They should look for <a href="https://custompaperswritinghelp.com/professional-essay-writers-editors/">high-quality essay writing services</a> that are affordable and reliable.

Displaying 1 to 10 of 22 messages
Previous123