Removing non-line items from the page data file
The region that is defined for the line item grid might include fields that are not line items. For example, the Total field that you used for text matching is not a line item. Therefore, Datacap might create line items for items that are not line items.
About this task
In the following invoice example, although there are only two line items on the invoice, Datacap created a third line item for the Total field.
| Item | Descript | Cost |
|---|---|---|
| 1176 | Widget | $6.95 |
| 9122 | Widget | $8.25 |
| Total | $15.20 |
The following is the XML code for the invoice example.
<P id="TM000001">
<F id="Grid_region">
<F id="Line_item0"> <--First line item
<F id="Item"> etc.</F> <--Has the value "1176"
<F id="Description"> etc.</F> <--Has the value "Widget"
<F id="Cost"> etc.</F> <--Has the value "6.95"
</F>
<F id="Line_item1"> <--Second line item
<F id="Item"> etc.</F> <--Has the value "9122"
<F id="Description"> etc.</F> <--Has the value "Widget"
<F id="Cost"> etc.</F> <--Has the value "8.25"
</F>
<F id="Line_item2"> <--Third line item (not a line item)
<F id="Item"> etc.</F> <--No data
<F id="Description"> etc.</F> <--Has the value "Total"
<F id="Cost"> etc.</F> <--Has the value "15.20"
</F>
etc.