locked
Modifications to calculation of quote total amount - Possible to do with BusinessRule and javascript? RRS feed

  • Question

  • Hi!

    I would like to get some ideas on how to implement the following requirements:

    • Products could be sold with or without insurance
    • The insurance cost is of 12% of product cost

    On the quote, they would like to have a checkbox indicating if the customer would like to have insurance or not.

    The total insurance cost should be added to the Total Amount if the checkbox is checked.

    Any ideas on how to to this?

    Should I go for reusing a field in the built in calculation, like freight amount field, and iterate products and totals in javascript, or are threre other smarter ways of achiving this?

    Thanks for  any help!

    Larsi

    Thursday, October 31, 2013 2:30 PM

Answers

  • I think your answer is here; the quote.totalamount property is readonly. If you could use other fields like you indicated (freight amount field with renamed display name perhaps) then you won't have to change reports or other things that consume the total amount.

    I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful. Michael Mayo

    • Marked as answer by Larsi Monday, November 4, 2013 12:22 PM
    Friday, November 1, 2013 8:23 PM