AnsweredAssumed Answered

sum of a field in a found set

Question asked by bablackburn on Feb 23, 2018
Latest reply on Feb 23, 2018 by philmodjunk

I've got a script I'm writing that searches for certain criteria and then needs to apply a tax calculation to the records that meet the criteria. In this instance there are are two or three different taxes that can be selected. The script will run through and calculate each of those taxes and return the value in a field. I can't get it to sum all of the contents however, it only ever applies the calculation to the first field or if I use a loop and variable it runs down the line and only ever grabs the last.

 

Screen Shot 2018-02-23 at 12.29.53 PM.png

Outcomes