Invoice field validation and field reconstruction

Field reconstruction can automatically calculate some fields that are not present on a document or recognized correctly.

The field reconstruction is based on redundant information on the invoice, and can replace tax rates if they contain invalid values.

Table 1. Conditions

Field Name

Replaces incorrect value

Equation

SubTotal

No

= Total (if no tax amounts are present)

= NetAmount0 + NetAmount1 + NetAmount2 + NetAmount3 + NetAmount4 – Postage - Packaging + Discount

NetAmount0

No

= Total (if no tax amounts are present)

NetAmount1

No

= Subtotal + Postage + Packaging - Discount (Tax block 2-4 are not present)

TaxRate 1-4

Yes

= TaxAmount / NetAmount