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
| RuleID | Identifier of the rule that was violated |
|---|---|
| FieldPath | Path to the XML element or attribute involved, in the provider's notation |
| MessageText | Human-readable description of the violation |
| Severity | Grade from informational to fatal |
| Line | Source line when the engine reports one, otherwise 0 |
| Category | Rule 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