TPDFInvoiceValidationIssue

Data types, invoices, compliance

Description

TPDFInvoiceValidationIssue is one finding produced by a validation stage. The provider fills the fields that its engine can report.

The validator uses Severity to decide whether a passed stage must be downgraded to failed, and keeps the issue list in TPDFInvoiceStageResult.

Syntax

Delphi

TPDFInvoiceValidationIssue = record
  RuleID, FieldPath, MessageText: WideString;
  Severity: TPDFInvoiceIssueSeverity;
  Line: Integer;
  Category: WideString;
end;

Fields

RuleIDIdentifier of the rule that was violated
FieldPathPath to the XML element or attribute involved, in the provider's notation
MessageTextHuman-readable description of the violation
SeverityGrade from informational to fatal
LineSource line when the engine reports one, otherwise 0
CategoryRule area such as syntax, schema, cardinality, calculation, vat, codelist, decimal, profile, coverage or processing

Remarks

FieldPath and Line are optional diagnostics; an empty path or line 0 means the engine did not provide them.

An issue with ivseError or ivseFatal severity downgrades the stage to ivstFailed.

See also

TPDFInvoiceIssueSeverity, TPDFInvoiceStageResult, TPDFInvoiceValidationReport