5 Replies Latest reply on Apr 2, 2015 6:47 AM by philmodjunk

    Calculation to correct a double negitive

    Kirk_1

      Title

      Calculation to correct a double negitive

      Post

      Below is my calculation. If the in_amount is negative it doubles...

      (in_amount = - 13.28) - (inpaidamount = 13.28) = - 26.53 not 0.

      What is the best way to fix the calculation so it accommodates a negative amount?

       

      If ( IN_isDLS ;

                      Round ( (IN_amount - INPaidAmount);2);

                      Round ( Invoice::INRemaining ; 2 )

      )