Calculated
A Calculated field checks that its value matches a calculation of other fields, such as a total that must equal the sum of its lines.
Options
- Math operation: Sum, Subtract or Multiply. Subtract takes the first field minus the others.
- Involved entities: The fields used in the calculation, which must be Number, Currency or Calculated fields.
- Negative error margin and Positive error margin: How far a sum may be off and still pass. Both are 0 by default, and only apply to Sum.
What it checks
The field compares the value read from the document with the result of the calculation. It does not fill the value in. A difference gives an error such as "Calculation is off by +2.5". Involved fields without digits, such as "n/a", are left out.
The check runs again after the business rules, so it sees the values they changed.