Calculated fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    Calculated fields

    Meanwhile I found the solution. Obviously you cannot put one substraction after another so the formula has to be in my case: open = total - (first + second);

    Hello,
    I read the instructions for calculated fields an I want to make simple calculations, which I did not succeed so far. I have a field, that should have a calculated value from three other values. The first is a total fee, for which I enter a first partial payment and later a second, final payment. The calculated field, which is read only, should show the possible missing amount.
    As a normal calculation it looks like this:

    Total fee: 250,00 €
    first rate: 50,00 € (substract from total)
    second rate: 200,00 € (subtract also from total)

    results in open to pay : 0,00 € (in this case, because I subtracted first and second rate from total)

    My formula is simply this way: open = total - first - second;

    but it does not work, nothing will be subtracted. As field format I tried Currency and Float. What did I wrong? To make these calculations and equations, is it possible only with float or also with currency?
    Last edited by shalmaxb; 10-15-2018, 03:12 PM.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    don't forget to set openCurrency filed as well
    like openCurrency=totalCurrency;

    do you have any error in espocrm log?

    Comment

    Working...