You need to create a recognition rule for the total amount
that is listed as the sum of all the line item totals. You can then
compare this total with the sum you get for the line item totals.
To create the recognition rule for the grid total:
- Right-click the Recognize ruleset
and choose Add Rule. Rename the new rule Recognize
Grid Total Field.
- Under the Recognize Line Item Grid rule,
select Function 1.
- On the Actions library tab, expand
the Locate library, select the FindLastRegEx action,
and click Add to function.
- In the Locate library, select the GoRightWord action
and click Add to function.
- In the Locate library, select the UpdateField action
and click Add to function.
- In the Rulesets pane, select the FindLastRegEx action. Then,
in the Properties pane, set strParam to Total.
- In the Rulesets pane, select the GoRightWord action. Then,
in the Properties pane, set strParam to 1.
- Click Save and then click Lock/Unlock
ruleset and choose Publish ruleset.